{"id":21165,"date":"2023-08-28T20:16:32","date_gmt":"2023-08-28T12:16:32","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21165"},"modified":"2023-08-28T20:16:32","modified_gmt":"2023-08-28T12:16:32","slug":"mxyxjfcyd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21165.html","title":{"rendered":"MQTT\u534f\u8bae\u8be6\u89e3\uff0c\u975e\u5e38\u6613\u61c2"},"content":{"rendered":"

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u6765\u4f20\u8f93\u6570\u636e\u3002\u5b83\u662f\u7528\u4e8e\u7269\u8054\u7f51\uff08IoT\uff09\u7684\u4e00\u79cd\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u4ee5\u5e2e\u52a9\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\u3002MQTT\u534f\u8bae\u5177\u6709\u4f4e\u5e26\u5bbd\uff0c\u4f4e\u529f\u8017\uff0c\u4f4e\u5ef6\u8fdf\uff0c\u53ef\u9760\u6027\u9ad8\u7b49\u4f18\u70b9\uff0c\u662f\u7269\u8054\u7f51\u9886\u57df\u6700\u53d7\u6b22\u8fce\u7684\u534f\u8bae\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdMQTT\u534f\u8bae\uff0c\u8ba9\u4f60\u4e00\u770b\u5c31\u61c2\uff01<\/p>\n

MQTT\u534f\u8bae\u7684\u6982\u8ff0<\/h2>\n

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u6765\u4f20\u8f93\u6570\u636e\u3002\u5b83\u662f\u7528\u4e8e\u7269\u8054\u7f51\uff08IoT\uff09\u7684\u4e00\u79cd\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u4ee5\u5e2e\u52a9\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\u3002MQTT\u534f\u8bae\u5177\u6709\u4f4e\u5e26\u5bbd\uff0c\u4f4e\u529f\u8017\uff0c\u4f4e\u5ef6\u8fdf\uff0c\u53ef\u9760\u6027\u9ad8\u7b49\u4f18\u70b9\uff0c\u662f\u7269\u8054\u7f51\u9886\u57df\u6700\u53d7\u6b22\u8fce\u7684\u534f\u8bae\u3002<\/p>\n

  MQTT\u534f\u8bae\u662f\u4e00\u79cd\u57fa\u4e8e\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5176\u4e2d\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u8fc7\u201c\u4ee3\u7406\u201d\uff08\u4e5f\u79f0\u4e3a\u201c\u4ee3\u7406\u670d\u52a1\u5668\u201d\uff09\u5efa\u7acb\u8fde\u63a5\u3002\u5ba2\u6237\u7aef\u53ef\u4ee5\u4f7f\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u5c06\u6d88\u606f\u53d1\u9001\u5230\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4ee3\u7406\u670d\u52a1\u5668\u5c06\u6d88\u606f\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u5ba2\u6237\u7aef\u3002MQTT\u534f\u8bae\u5177\u6709\u4f4e\u5e26\u5bbd\uff0c\u4f4e\u529f\u8017\uff0c\u4f4e\u5ef6\u8fdf\uff0c\u53ef\u9760\u6027\u9ad8\u7b49\u4f18\u70b9\uff0c\u662f\u7269\u8054\u7f51\u9886\u57df\u6700\u53d7\u6b22\u8fce\u7684\u534f\u8bae\u3002<\/p>\n

MQTT\u534f\u8bae\u7684\u7279\u70b9<\/h2>\n

1.\u4f4e\u5e26\u5bbd<\/h3>\n

  MQTT\u534f\u8bae\u4f7f\u7528\u4e86\u8f7b\u91cf\u7ea7\u7684\u62a5\u6587\u683c\u5f0f\uff0c\u62a5\u6587\u683c\u5f0f\u7684\u5927\u5c0f\u4ec5\u4e3a2\u5b57\u8282\u5230256\u5b57\u8282\uff0c\u5927\u5927\u51cf\u5c11\u4e86\u7f51\u7edc\u4f20\u8f93\u7684\u5e26\u5bbd\uff0c\u4ece\u800c\u964d\u4f4e\u4e86\u7f51\u7edc\u4f20\u8f93\u7684\u6210\u672c\u3002<\/p>\n

2.\u4f4e\u529f\u8017<\/h3>\n

  MQTT\u534f\u8bae\u7684\u8bbe\u8ba1\u76ee\u6807\u662f\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u8bbe\u8ba1\uff0c\u5b83\u91c7\u7528\u4e86\u8f7b\u91cf\u7ea7\u7684\u62a5\u6587\u683c\u5f0f\uff0c\u4ece\u800c\u51cf\u5c11\u4e86\u7f51\u7edc\u4f20\u8f93\u7684\u529f\u8017\uff0c\u4ece\u800c\u66f4\u52a0\u7701\u7535\u3002<\/p>\n

3.\u4f4e\u5ef6\u8fdf<\/h3>\n

  MQTT\u534f\u8bae\u4f7f\u7528\u4e86\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u8ba2\u9605\u67d0\u4e2a\u4e3b\u9898\uff0c\u5f53\u6709\u6d88\u606f\u53d1\u5e03\u5230\u8be5\u4e3b\u9898\u65f6\uff0c\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u6536\u5230\u6d88\u606f\uff0c\u4ece\u800c\u5927\u5927\u7f29\u77ed\u4e86\u6d88\u606f\u7684\u4f20\u8f93\u5ef6\u8fdf\uff0c\u63d0\u9ad8\u4e86\u6d88\u606f\u7684\u4f20\u8f93\u6548\u7387\u3002<\/p>\n

4.\u53ef\u9760\u6027\u9ad8<\/h3>\n

  MQTT\u534f\u8bae\u652f\u6301\u53ef\u9760\u6027\u4f20\u8f93\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u8bbe\u7f6e\u62a5\u6587\u7684QoS\u7b49\u7ea7\uff0c\u4ece\u800c\u4fdd\u8bc1\u62a5\u6587\u7684\u53ef\u9760\u6027\u4f20\u8f93\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u6765\u4f20\u8f93\u6570\u636e\uff0c\u662f\u7269\u8054\u7f51\u9886\u57df\u6700\u53d7\u6b22\u8fce\u7684\u534f\u8bae\u3002<\/strong>MQTT\u534f\u8bae\u5177\u6709\u4f4e\u5e26\u5bbd\uff0c\u4f4e\u529f\u8017\uff0c\u4f4e\u5ef6\u8fdf\uff0c\u53ef\u9760\u6027\u9ad8\u7b49\u4f18\u70b9\uff0c\u662f\u7269\u8054\u7f51\u9886\u57df\u6700\u53d7\u6b22\u8fce\u7684\u534f\u8bae\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\uff0c\u662f\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u53ef\u9760\u901a\u4fe1\u7684\u4e0d\u4e8c\u4e4b\u9009\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u6765\u4f20\u8f93\u6570\u636e\u3002\u5b83\u662f\u7528\u4e8e\u7269\u8054\u7f51\uff08IoT\uff09\u7684\u4e00<\/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-21165","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\/21165","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=21165"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21165\/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=21165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}