{"id":6785,"date":"2025-06-27T16:25:21","date_gmt":"2025-06-27T07:25:21","guid":{"rendered":"https:\/\/blog.smartlight.co.jp\/?p=6785"},"modified":"2025-06-27T16:37:42","modified_gmt":"2025-06-27T07:37:42","slug":"mqtt%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/blog.smartlight.co.jp\/?p=6785","title":{"rendered":"MQTT\u3068\u306f"},"content":{"rendered":"\n<p>MQTT\uff08Message Queuing Telemetry Transport\uff09\u306f\u3001IoT\uff08\u30e2\u30ce\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff09\u30c7\u30d0\u30a4\u30b9\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u305f\u8efd\u91cf\u306a\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002\u30e1\u30e2\u30ea\u306e\u5236\u7d04\u304c\u53b3\u3057\u304b\u3063\u305f\u308a\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5e2f\u57df\u5e45\u304c\u9650\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u74b0\u5883\u3067\u306e\u5229\u7528\u306b\u9069\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3b\u306a\u7528\u9014<\/h3>\n\n\n\n<p>\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\uff1a\u6e29\u5ea6\u30bb\u30f3\u30b5\u30fc\u3001\u30b9\u30de\u30fc\u30c8\u30e9\u30a4\u30c8\u306e\u5236\u5fa1\u3001\u30c9\u30a2\u306e\u958b\u9589\u901a\u77e5<br>\u5de5\u5834\u30fb\u88fd\u9020\u3000\u3000\uff1aPLC\u304b\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3057\u3001\u898b\u3048\u308b\u5316<br>\u8fb2\u696d\u3000\u3000\u3000\u3000\u3000\uff1a\u571f\u58cc\u6e7f\u5ea6\u30bb\u30f3\u30b5\u30fc\u3068\u704c\u6f11\u30b7\u30b9\u30c6\u30e0\u306e\u81ea\u52d5\u9023\u643a<br>\u533b\u7642\u6a5f\u5668\u3000\u3000\u3000\uff1a\u60a3\u8005\u306e\u30d0\u30a4\u30bf\u30eb\u60c5\u5831\u3092\u30af\u30e9\u30a6\u30c9\u3078\u9001\u4fe1\u3057\u3001\u9060\u9694\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<br>\u30e2\u30d3\u30ea\u30c6\u30a3\u3000\u3000\uff1a\u8eca\u4e21\u304b\u3089\u306e\u8d70\u884c\u30c7\u30fc\u30bf\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u5171\u6709<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MQTT\u4ee5\u5916\u3068\u306e\u6bd4\u8f03<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7279\u5fb4<\/th><th>MQTT<\/th><th>HTTP<\/th><th>CoAP<\/th><th>AMQP<\/th><\/tr><\/thead><tbody><tr><td>\u8efd\u91cf\u3055<\/td><td>\u25ce<\/td><td>\u25b3<\/td><td>\u25ce<\/td><td>\u25b3<\/td><\/tr><tr><td>\u901a\u4fe1\u65b9\u5411<\/td><td>\u53cc\u65b9\u5411<\/td><td>\u30ea\u30af\u30a8\u30b9\u30c8\/\u30ec\u30b9\u30dd\u30f3\u30b9<\/td><td>\u53cc\u65b9\u5411<\/td><td>\u53cc\u65b9\u5411<\/td><\/tr><tr><td>\u30d7\u30ed\u30c8\u30b3\u30eb\u5c64<\/td><td>TCP<\/td><td>TCP<\/td><td>UDP<\/td><td>TCP<\/td><\/tr><tr><td>\u9069\u7528\u5206\u91ce<\/td><td>IoT\u5168\u822c<\/td><td>Web API<\/td><td>\u7d44\u8fbc\u307fIoT<\/td><td>\u91d1\u878d\u306a\u3069\u9ad8\u4fe1\u983c\u304c\u5fc5\u8981\u306a\u5206\u91ce<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4ed6\u3068\u6bd4\u3079\u3066\u8efd\u91cf\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u3064\u3044\u3066<\/h3>\n\n\n\n<p>MQTT\u81ea\u4f53\u306f\u8efd\u91cf\u5316\u3092\u91cd\u8996\u3057\u3066\u3044\u308b\u305f\u3081\u3001<strong>\u6697\u53f7\u5316\u3084\u8a8d\u8a3c\u306f\u30aa\u30d7\u30b7\u30e7\u30f3<\/strong>\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5b9f\u969b\u306e\u904b\u7528\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5bfe\u7b56\u304c\u53d6\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>TLS\uff08SSL\uff09\u3067\u6697\u53f7\u5316<\/strong>\uff1a\u30c7\u30fc\u30bf\u3092\u76d7\u8074\u304b\u3089\u5b88\u308b<\/li>\n\n\n\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c<\/strong>\uff1aID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u63a5\u7d9a\u5236\u5fa1<\/li>\n\n\n\n<li><strong>ACL\uff08\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u30ea\u30b9\u30c8\uff09<\/strong>\uff1a\u8ab0\u304c\u3069\u306e\u30c8\u30d4\u30c3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u7ba1\u7406<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528\u8a9e\u307e\u3068\u3081\uff08\u7c21\u5358\u306b\uff09<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7528\u8a9e<\/th><th>\u610f\u5473<\/th><\/tr><\/thead><tbody><tr><td><strong>\u30c8\u30d4\u30c3\u30af<\/strong><\/td><td>\u30c7\u30fc\u30bf\u306e\u300c\u5b9b\u5148\u300d\u3092\u8868\u3059\u968e\u5c64\u69cb\u9020\u306e\u6587\u5b57\u5217\uff08\u4f8b\uff1a<code>home\/living\/temp<\/code>\uff09<\/td><\/tr><tr><td><strong>Publish<\/strong><\/td><td>\u30c8\u30d4\u30c3\u30af\u306b\u30c7\u30fc\u30bf\u3092\u9001\u308b\uff08\u767a\u4fe1\uff09<\/td><\/tr><tr><td><strong>Subscribe<\/strong><\/td><td>\u7279\u5b9a\u306e\u30c8\u30d4\u30c3\u30af\u306e\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\uff08\u53d7\u4fe1\uff09<\/td><\/tr><tr><td><strong>\u30d6\u30ed\u30fc\u30ab\u30fc<\/strong><\/td><td>\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6a4b\u6e21\u3057\u3092\u3059\u308b\u30b5\u30fc\u30d0\u30fc<\/td><\/tr><tr><td><strong>QoS<\/strong><\/td><td>\u914d\u4fe1\u306e\u78ba\u5b9f\u6027\u30ec\u30d9\u30eb\uff080, 1, 2\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u4f7f\u3046\u306b\u306f\uff1f<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u30c4\u30fc\u30eb\u540d<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td><strong>Mosquitto<\/strong><\/td><td>\u6709\u540d\u306a\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9MQTT\u30d6\u30ed\u30fc\u30ab\u30fc\u3002Raspberry Pi\u306b\u3082\u5bfe\u5fdc<\/td><\/tr><tr><td><strong>Node-RED<\/strong><\/td><td>MQTT\u30ce\u30fc\u30c9\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3067\u4f7f\u3048\u308b\u30d3\u30b8\u30e5\u30a2\u30eb\u958b\u767a\u30c4\u30fc\u30eb<\/td><\/tr><tr><td><strong>MQTT Explorer<\/strong><\/td><td>\u30c8\u30d4\u30c3\u30af\u3054\u3068\u306e\u30c7\u30fc\u30bf\u3092\u898b\u3084\u3059\u304f\u6574\u7406\u3057\u3066\u304f\u308c\u308bGUI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u30fb\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067MQTT\u3092\u8a66\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>MQTT\u306f\u3001\u300c\u5c0f\u3055\u304f\u3066\u8efd\u3044\u306e\u306b\u5f37\u529b\u300d\u306a\u901a\u4fe1\u306e\u4ed5\u7d44\u307f\u3067\u3042\u308a\u3001\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u3084\u533b\u7642\u3001\u8fb2\u696d\u306a\u3069\u3053\u308c\u304b\u3089\u306eIoT\u30fb\u30b9\u30de\u30fc\u30c8\u5316\u793e\u4f1a\u306b\u304a\u3044\u3066\u6b20\u304b\u305b\u306a\u3044\u6280\u8853\u3067\u3042\u308b\u3068\u8003\u3048\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MQTT\uff08Message Queuing Telemetry Transport\uff09\u306f\u3001IoT\uff08\u30e2\u30ce\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff09\u30c7\u30d0\u30a4\u30b9\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u305f\u8efd\u91cf\u306a\u901a\u4fe1\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002\u30e1\u30e2\u30ea\u306e\u5236\u7d04\u304c\u53b3\u3057\u304b\u3063\u305f\u308a\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5e2f\u57df\u5e45\u304c\u9650\u3089\u308c<\/p>\n","protected":false},"author":22,"featured_media":6787,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2025\/06\/thumbnails-ogp-6785.png","_jin_last_featured_id":6787,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-6785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-intern"],"jetpack_featured_media_url":"https:\/\/blog.smartlight.co.jp\/wp-content\/uploads\/2025\/06\/thumbnails-featured-6785.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/6785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6785"}],"version-history":[{"count":3,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/6785\/revisions"}],"predecessor-version":[{"id":6797,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/6785\/revisions\/6797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=\/wp\/v2\/media\/6787"}],"wp:attachment":[{"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smartlight.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}