{"id":21142,"date":"2023-09-28T23:56:09","date_gmt":"2023-09-28T15:56:09","guid":{"rendered":"\/\/www.viralrail.com\/?p=21142"},"modified":"2023-09-28T23:56:09","modified_gmt":"2023-09-28T15:56:09","slug":"ijddwlwxxcsxy","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/21142.html","title":{"rendered":"IoTMQTT\uff1a\u7b80\u5355\u7684\u7269\u8054\u7f51\u6d88\u606f\u4f20\u8f93\u534f\u8bae"},"content":{"rendered":"

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u7b80\u5355\u7684\u7269\u8054\u7f51\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u8f7b\u677e\u5730\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002MQTT\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u7b80\u5355\u7684\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u9012\u3002\u672c\u6587\u5c06\u6df1\u5165\u8ba8\u8bbaMQTT\u7684\u539f\u7406\uff0c\u4ee5\u53ca\u5b83\u5982\u4f55\u7528\u4e8e\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u9012\u3002<\/p>\n

MQTT\u7684\u7ed3\u6784<\/h2>\n

  MQTT\u7684\u7ed3\u6784\u5305\u62ec\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u4e00\u4e2a\u5ba2\u6237\u7aef\u548c\u4e00\u4e2a\u6d88\u606f\u961f\u5217\u3002\u670d\u52a1\u5668\u662f\u7528\u4e8e\u63a5\u6536\u548c\u4f20\u8f93\u6d88\u606f\u7684\u4e2d\u5fc3\u8282\u70b9\uff0c\u5ba2\u6237\u7aef\u662f\u7528\u4e8e\u5411\u670d\u52a1\u5668\u53d1\u9001\u548c\u63a5\u6536\u6d88\u606f\u7684\u8282\u70b9\uff0c\u800c\u6d88\u606f\u961f\u5217\u662f\u7528\u4e8e\u5b58\u50a8\u6d88\u606f\u7684\u6570\u636e\u7ed3\u6784\u3002MQTT\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u201c\u53d1\u5e03\/\u8ba2\u9605\u201d\u7684\u6a21\u5f0f\u6765\u5904\u7406\u6d88\u606f\u4f20\u8f93\uff0c\u8fd9\u610f\u5473\u7740\u5ba2\u6237\u7aef\u53ef\u4ee5\u8ba2\u9605\u7279\u5b9a\u7684\u4e3b\u9898\uff0c\u800c\u670d\u52a1\u5668\u53ef\u4ee5\u53d1\u5e03\u6d88\u606f\u5230\u8fd9\u4e9b\u4e3b\u9898\u3002<\/p>\n

\u670d\u52a1\u5668<\/h3>\n

  MQTT\u670d\u52a1\u5668\u662f\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u6d88\u606f\u4f20\u8f93\u7684\u4e2d\u5fc3\u8282\u70b9\u3002\u5b83\u53ef\u4ee5\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6d88\u606f\uff0c\u5e76\u5c06\u6d88\u606f\u53d1\u9001\u5230\u8ba2\u9605\u6d88\u606f\u7684\u5ba2\u6237\u7aef\u3002\u5b83\u8fd8\u53ef\u4ee5\u5904\u7406\u6d88\u606f\u4f20\u8f93\u7684\u5176\u4ed6\u529f\u80fd\uff0c\u5982\u6d88\u606f\u786e\u8ba4\u3001\u6d88\u606f\u6301\u4e45\u5316\u548c\u6d88\u606f\u8def\u7531\u3002<\/p>\n

\u5ba2\u6237\u7aef<\/h3>\n

  MQTT\u5ba2\u6237\u7aef\u662f\u7528\u4e8e\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u6d88\u606f\u4f20\u8f93\u7684\u8282\u70b9\u3002\u5b83\u53ef\u4ee5\u5411\u670d\u52a1\u5668\u53d1\u9001\u6d88\u606f\uff0c\u4e5f\u53ef\u4ee5\u4ece\u670d\u52a1\u5668\u63a5\u6536\u6d88\u606f\u3002\u5b83\u8fd8\u53ef\u4ee5\u5904\u7406\u6d88\u606f\u4f20\u8f93\u7684\u5176\u4ed6\u529f\u80fd\uff0c\u5982\u6d88\u606f\u786e\u8ba4\u3001\u6d88\u606f\u6301\u4e45\u5316\u548c\u6d88\u606f\u8def\u7531\u3002<\/p>\n

\u6d88\u606f\u961f\u5217<\/h3>\n

  MQTT\u6d88\u606f\u961f\u5217\u662f\u7528\u4e8e\u5b58\u50a8\u6d88\u606f\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u670d\u52a1\u5668\u7ba1\u7406\u6d88\u606f\u4f20\u8f93\u7684\u6d41\u91cf\u3002\u6d88\u606f\u961f\u5217\u53ef\u4ee5\u5b58\u50a8\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6d88\u606f\uff0c\u5e76\u5c06\u6d88\u606f\u53d1\u9001\u5230\u8ba2\u9605\u6d88\u606f\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n

MQTT\u7684\u4f7f\u7528<\/h2>\n

  MQTT\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u9012\u3002\u5b83\u5141\u8bb8\u7528\u6237\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u5904\u7406\u5927\u91cf\u7684\u6d88\u606f\u6d41\u91cf\u3002MQTT\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u6d88\u606f\u786e\u8ba4\u3001\u6d88\u606f\u6301\u4e45\u5316\u548c\u6d88\u606f\u8def\u7531\uff0c\u4ece\u800c\u4f7f\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u9012\u66f4\u52a0\u53ef\u9760\u548c\u53ef\u63a7\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  MQTT\u662f\u4e00\u79cd\u7b80\u5355\u7684\u7269\u8054\u7f51\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u5904\u7406\u5927\u91cf\u7684\u6d88\u606f\u6d41\u91cf\u3002<\/strong>MQTT\u7684\u7ed3\u6784\u5305\u62ec\u4e00\u4e2a\u670d\u52a1\u5668\u3001\u4e00\u4e2a\u5ba2\u6237\u7aef\u548c\u4e00\u4e2a\u6d88\u606f\u961f\u5217\u3002MQTT\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u9012\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5b9e\u73b0\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u5904\u7406\u6d88\u606f\u786e\u8ba4\u3001\u6d88\u606f\u6301\u4e45\u5316\u548c\u6d88\u606f\u8def\u7531\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u7b80\u5355\u7684\u7269\u8054\u7f51\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u8f7b\u677e\u5730\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002MQTT<\/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-21142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-m"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/21142"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=21142"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/21142\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=21142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=21142"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=21142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}