{"id":79125,"date":"2023-12-31T10:10:51","date_gmt":"2023-12-31T02:10:51","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=79125"},"modified":"2023-12-31T10:10:51","modified_gmt":"2023-12-31T02:10:51","slug":"srljmkfbj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/79125.html","title":{"rendered":"\u6df1\u5165\u4e86\u89e3MQTT\u5f00\u53d1\u7b14\u8bb0"},"content":{"rendered":"
MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MQTT\u5f00\u53d1\u7b14\u8bb0\uff0c\u5e26\u60a8\u4e86\u89e3\u5b83\u7684\u6838\u5fc3\u6982\u5ff5\u3001\u5e94\u7528\u573a\u666f\u4ee5\u53ca\u5f00\u53d1\u6280\u5de7\u3002<\/p>\n
MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5141\u8bb8\u8bbe\u5907\u4e4b\u95f4\u901a\u8fc7\u4e2d\u4ecb\u8005\uff08\u6d88\u606f\u4ee3\u7406\uff09\u8fdb\u884c\u5b9e\u65f6\u901a\u4fe1\u3002\u5b83\u91c7\u7528\u8f7b\u91cf\u7ea7\u7684\u8fde\u63a5\uff0c\u9002\u7528\u4e8e\u7f51\u7edc\u5e26\u5bbd\u6709\u9650\u7684\u573a\u666f\uff0c\u5982\u4f20\u611f\u5668\u6570\u636e\u4f20\u8f93\u548c\u8fdc\u7a0b\u63a7\u5236\u3002<\/p>\n
\u5728MQTT\u4e2d\uff0c\u8bbe\u5907\u53ef\u4ee5\u5145\u5f53\u53d1\u5e03\u8005\u6216\u8ba2\u9605\u8005\u3002\u53d1\u5e03\u8005\u53d1\u9001\u6d88\u606f\u5230\u4e3b\u9898\uff08Topic\uff09\uff0c\u800c\u8ba2\u9605\u8005\u8ba2\u9605\u611f\u5174\u8da3\u7684\u4e3b\u9898\u4ee5\u63a5\u6536\u6d88\u606f\u3002\u6d88\u606f\u4ee3\u7406\u8d1f\u8d23\u8def\u7531\u548c\u8f6c\u53d1\u6d88\u606f\uff0c\u5b9e\u73b0\u8bbe\u5907\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n
\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684MQTT\u5e93\u5bf9\u4e8e\u9879\u76ee\u7684\u6210\u529f\u5b9e\u65bd\u81f3\u5173\u91cd\u8981\u3002\u5e38\u7528\u7684MQTT\u5e93\u5305\u62ecPaho MQTT\u3001Eclipse Mosquitto\u7b49\uff0c\u5f00\u53d1\u8005\u5e94\u6839\u636e\u9879\u76ee\u9700\u6c42\u548c\u5e73\u53f0\u7279\u6027\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n
\u5229\u7528MQTT\u534f\u8bae\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u5b9e\u65f6\u901a\u4fe1\u3002\u901a\u8fc7\u6784\u5efa\u53d1\u5e03\u8005-\u8ba2\u9605\u8005\u6a21\u5f0f\uff0c\u8bbe\u5907\u53ef\u4ee5\u76f8\u4e92\u4ea4\u6362\u6570\u636e\uff0c\u5e76\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u548c\u76d1\u63a7\u529f\u80fd\uff0c\u6781\u5927\u5730\u62d3\u5c55\u4e86\u7269\u8054\u7f51\u5e94\u7528\u7684\u53ef\u80fd\u6027\u3002<\/p>\n
\u968f\u7740\u7269\u8054\u7f51\u884c\u4e1a\u7684\u5feb\u901f\u53d1\u5c55\uff0cMQTT\u4f5c\u4e3a\u4e00\u79cd\u4f18\u79c0\u7684\u901a\u4fe1\u534f\u8bae\u5c06\u4f1a\u5f97\u5230\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/strong>\u672a\u6765\uff0c\u968f\u77405G\u3001\u8fb9\u7f18\u8ba1\u7b97\u7b49\u6280\u672f\u7684\u53d1\u5c55\uff0cMQTT\u5c06\u4f1a\u66f4\u597d\u5730\u652f\u6301\u5404\u7c7b\u7269\u8054\u7f51\u5e94\u7528\uff0c\u4e3a\u667a\u80fd\u751f\u6d3b\u548c\u5de5\u4e1a\u4e92\u8054\u7f51\u5e26\u6765\u66f4\u591a\u53ef\u80fd\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MQTT\u5f00\u53d1\u7b14\u8bb0\uff0c\u5e26\u60a8<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","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-79125","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\/79125","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=79125"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/79125\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=79125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=79125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=79125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}