{"id":21164,"date":"2023-09-17T08:56:50","date_gmt":"2023-09-17T00:56:50","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21164"},"modified":"2023-09-17T08:56:50","modified_gmt":"2023-09-17T00:56:50","slug":"symfwqdjlj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21164.html","title":{"rendered":"\u4f7f\u7528MQTT\u670d\u52a1\u5668\u642d\u5efa\u8fde\u63a5"},"content":{"rendered":"
MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u57fa\u4e8eTCP\/IP\u534f\u8bae\uff0c\u7528\u4e8e\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u8f93\u3002MQTT\u534f\u8bae\u7684\u7279\u70b9\u662f\u8f7b\u91cf\u7ea7\u3001\u4f4e\u8017\u80fd\u3001\u53ef\u9760\u6027\u5f3a\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6491\u5927\u89c4\u6a21\u7684\u8bbe\u5907\u8fde\u63a5\uff0c\u662f\u4e00\u79cd\u5b9e\u65f6\u6d88\u606f\u4f20\u8f93\u7684\u7406\u60f3\u9009\u62e9\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528MQTT\u670d\u52a1\u5668\u642d\u5efa\u8fde\u63a5\uff0c\u4ee5\u53ca\u5982\u4f55\u5904\u7406\u5e38\u89c1\u7684\u8fde\u63a5\u95ee\u9898\u3002<\/p>\n
\u5b89\u88c5MQTT\u670d\u52a1\u5668\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u5e73\u53f0\u5b89\u88c5\u76f8\u5e94\u7684MQTT\u670d\u52a1\u5668\u5373\u53ef\uff0c\u6bd4\u5982\u5728Windows\u7cfb\u7edf\u4e0a\u53ef\u4ee5\u5b89\u88c5Mosquitto\uff0c\u5728Linux\u7cfb\u7edf\u4e0a\u53ef\u4ee5\u5b89\u88c5HiveMQ\u7b49\u3002<\/p>\n
\u5b89\u88c5\u5b8cMQTT\u670d\u52a1\u5668\u540e\uff0c\u9700\u8981\u8fdb\u884c\u76f8\u5e94\u7684\u914d\u7f6e\uff0c\u6bd4\u5982\u8bbe\u7f6eMQTT\u670d\u52a1\u5668\u7684IP\u5730\u5740\u3001\u7aef\u53e3\u53f7\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u7b49\uff0c\u8fd9\u4e9b\u914d\u7f6e\u90fd\u53ef\u4ee5\u5728MQTT\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n
\u5b8c\u6210MQTT\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u76f8\u5e94\u7684\u5ba2\u6237\u7aef\u5de5\u5177\u8fde\u63a5MQTT\u670d\u52a1\u5668\u4e86\uff0c\u6bd4\u5982\u53ef\u4ee5\u4f7f\u7528MQTT.fx\u8fd9\u79cd\u5ba2\u6237\u7aef\u5de5\u5177\u6765\u8fde\u63a5MQTT\u670d\u52a1\u5668\u3002<\/p>\n
\u5982\u679cMQTT\u670d\u52a1\u5668\u8fde\u63a5\u4e0d\u4e0a\uff0c\u9996\u5148\u5e94\u8be5\u67e5\u770bMQTT\u670d\u52a1\u5668\u7684\u65e5\u5fd7\uff0c\u4ee5\u786e\u8ba4\u662f\u5426\u6709\u76f8\u5173\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u6240\u5728\uff0c\u4ece\u800c\u5feb\u901f\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n
\u5982\u679c\u6ca1\u6709\u627e\u5230\u76f8\u5173\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u53ef\u4ee5\u68c0\u67e5MQTT\u670d\u52a1\u5668\u7684\u914d\u7f6e\uff0c\u6bd4\u5982\u68c0\u67e5IP\u5730\u5740\u3001\u7aef\u53e3\u53f7\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u7b49\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u7684\u914d\u7f6e\u90fd\u662f\u6b63\u786e\u7684\u3002<\/p>\n
\u5982\u679cMQTT\u670d\u52a1\u5668\u7684\u914d\u7f6e\u90fd\u662f\u6b63\u786e\u7684\uff0c\u53ef\u4ee5\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\uff0c\u6bd4\u5982\u68c0\u67e5\u662f\u5426\u6709\u5176\u4ed6\u8bbe\u5907\u5360\u7528\u4e86MQTT\u670d\u52a1\u5668\u7684\u7aef\u53e3\uff0c\u6216\u8005\u68c0\u67e5\u9632\u706b\u5899\u662f\u5426\u62e6\u622a\u4e86MQTT\u670d\u52a1\u5668\u7684\u8fde\u63a5\u7b49\uff0c\u4ee5\u786e\u4fddMQTT\u670d\u52a1\u5668\u80fd\u591f\u6b63\u5e38\u7684\u8fde\u63a5\u5230\u7f51\u7edc\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528MQTT\u670d\u52a1\u5668\u642d\u5efa\u8fde\u63a5\uff0c\u4ee5\u53ca\u5982\u4f55\u5904\u7406\u5e38\u89c1\u7684\u8fde\u63a5\u95ee\u9898\u3002MQTT\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u5e73\u53f0\u5b89\u88c5\u76f8\u5e94\u7684MQTT\u670d\u52a1\u5668\uff0c\u7136\u540e\u914d\u7f6eMQTT\u670d\u52a1\u5668\u7684IP\u5730\u5740\u3001\u7aef\u53e3\u53f7\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u7b49\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u5ba2\u6237\u7aef\u5de5\u5177\u8fde\u63a5MQTT\u670d\u52a1\u5668\u4e86\u3002\u5982\u679cMQTT\u670d\u52a1\u5668\u8fde\u63a5\u4e0d\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u67e5\u770bMQTT\u670d\u52a1\u5668\u65e5\u5fd7\u3001\u68c0\u67e5MQTT\u670d\u52a1\u5668\u914d\u7f6e\u3001\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u7b49\u65b9\u5f0f\u6765\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u57fa\u4e8eTCP\/IP\u534f\u8bae<\/p>\n","protected":false},"author":1,"featured_media":3671,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[46],"class_list":["post-21164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-m"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=21164"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21164\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=21164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}