{"id":79127,"date":"2024-01-11T01:27:12","date_gmt":"2024-01-10T17:27:12","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=79127"},"modified":"2024-01-11T01:27:12","modified_gmt":"2024-01-10T17:27:12","slug":"ljmxy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/79127.html","title":{"rendered":"\u4e86\u89e3MQTT\u534f\u8bae"},"content":{"rendered":"

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecdMQTT\u534f\u8bae\u7684\u539f\u7406\u3001\u5e94\u7528\u548c\u672a\u6765\u8d8b\u52bf\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u4e86\u89e3\u8fd9\u4e00\u91cd\u8981\u7684\u6280\u672f\u3002<\/p>\n

MQTT\u534f\u8bae\u57fa\u7840<\/h2>\n

  MQTT\u7684\u7279\u70b9<\/h3>\n

  MQTT\u662f\u4e00\u79cd\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5177\u6709\u4f4e\u5f00\u9500\u3001\u7b80\u5355\u3001\u9ad8\u6548\u7684\u7279\u70b9\u3002\u5b83\u9002\u7528\u4e8e\u4f4e\u5e26\u5bbd\u3001\u4e0d\u53ef\u9760\u7f51\u7edc\u73af\u5883\u4e0b\u7684\u7269\u8054\u7f51\u8bbe\u5907\u901a\u4fe1\uff0c\u6709\u6548\u964d\u4f4e\u4e86\u901a\u4fe1\u6210\u672c\u3002<\/p>\n

  MQTT\u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n

  MQTT\u534f\u8bae\u57fa\u4e8e\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u67b6\u6784\uff0c\u901a\u8fc7Broker\u6765\u5b9e\u73b0\u6d88\u606f\u7684\u8f6c\u53d1\u548c\u4f20\u9012\u3002\u5ba2\u6237\u7aef\u53ef\u4ee5\u662f\u751f\u4ea7\u8005\u6216\u6d88\u8d39\u8005\uff0c\u5b83\u4eec\u901a\u8fc7\u8ba2\u9605\u548c\u53d1\u5e03\u6d88\u606f\u6765\u5efa\u7acb\u8054\u7cfb\u3002<\/p>\n

MQTT\u534f\u8bae\u7684\u5e94\u7528<\/h2>\n

  \u667a\u80fd\u5bb6\u5c45<\/h3>\n

  \u5728\u667a\u80fd\u5bb6\u5c45\u7cfb\u7edf\u4e2d\uff0cMQTT\u534f\u8bae\u5e38\u7528\u4e8e\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\u7684\u7075\u6d3b\u8054\u52a8\uff0c\u5982\u667a\u80fd\u706f\u5149\u63a7\u5236\u3001\u6e29\u5ea6\u76d1\u6d4b\u7b49\u3002<\/p>\n

  \u5de5\u4e1a\u81ea\u52a8\u5316<\/h3>\n

  \u5728\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\uff0cMQTT\u534f\u8bae\u53ef\u7528\u4e8e\u76d1\u63a7\u4f20\u611f\u5668\u6570\u636e\u3001\u8fdc\u7a0b\u63a7\u5236\u8bbe\u5907\uff0c\u5e76\u4e0e\u5176\u4ed6\u7cfb\u7edf\u5feb\u901f\u3001\u53ef\u9760\u5730\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  MQTT\u7684\u672a\u6765<\/h3>\n

  \u968f\u7740\u7269\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0cMQTT\u534f\u8bae\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u3001\u53ef\u9760\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u5c06\u4f1a\u5f97\u5230\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u540c\u65f6\u4e5f\u9762\u4e34\u7740\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u7b49\u65b0\u6311\u6218\u3002<\/strong>\u4e0d\u65ad\u6539\u8fdb\u548c\u53d1\u5c55MQTT\u534f\u8bae\u5c06\u662f\u672a\u6765\u7684\u91cd\u8981\u65b9\u5411\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u4ecb\u7ecdMQTT\u534f\u8bae\u7684\u539f\u7406\u3001\u5e94\u7528\u548c\u672a\u6765\u8d8b<\/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-79127","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\/79127"}],"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=79127"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/79127\/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=79127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=79127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=79127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}