{"id":79111,"date":"2024-01-07T04:43:59","date_gmt":"2024-01-06T20:43:59","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=79111"},"modified":"2024-01-07T04:43:59","modified_gmt":"2024-01-06T20:43:59","slug":"symfwqqd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/79111.html","title":{"rendered":"\u4f7f\u7528MQTT\u670d\u52a1\u5668\u542f\u52a8"},"content":{"rendered":"

  MQTT\u670d\u52a1\u5668\u662f\u4e00\u79cd\u7528\u4e8e\u4f20\u8f93\u4f20\u611f\u5668\u6570\u636e\u548c\u63a7\u5236\u547d\u4ee4\u7684\u8f7b\u91cf\u7ea7\u901a\u8baf\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u7684\u8fde\u63a5\u63d0\u4f9b\u9ad8\u6548\u7684\u901a\u8baf\u673a\u5236\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528MQTT\u670d\u52a1\u5668\u542f\u52a8\uff0c\u4ee5\u53ca\u76f8\u5173\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n

MQTT\u670d\u52a1\u5668\u7b80\u4ecb<\/h2>\n

  MQTT\u534f\u8bae\u6982\u8ff0<\/h3>\n

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\uff08Publish\/Subscribe\uff09\u6a21\u5f0f\u7684\u901a\u8baf\u534f\u8bae\uff0c\u65e8\u5728\u5b9e\u73b0\u4f4e\u5e26\u5bbd\u548c\u4f4e\u529f\u8017\u7684\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u8baf\u3002\u7531\u4e8e\u5176\u8f7b\u91cf\u7ea7\u548c\u53ef\u9760\u6027\uff0cMQTT\u534f\u8bae\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u884c\u4e1a\u3002<\/p>\n

  \u9009\u62e9\u5408\u9002\u7684MQTT\u670d\u52a1\u5668<\/h3>\n

  \u5728\u542f\u52a8MQTT\u670d\u52a1\u5668\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u5408\u9002\u7684MQTT\u670d\u52a1\u5668\u3002\u5e38\u89c1\u7684MQTT\u670d\u52a1\u5668\u5305\u62ecMosquitto\u3001HiveMQ\u3001EMQ X\u7b49\u3002\u6839\u636e\u5b9e\u9645\u9700\u6c42\uff0c\u9009\u62e9\u9002\u5408\u573a\u666f\u7684MQTT\u670d\u52a1\u5668\u975e\u5e38\u91cd\u8981\u3002<\/p>\n

\u4f7f\u7528MQTT\u670d\u52a1\u5668\u542f\u52a8\u6b65\u9aa4<\/h2>\n

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

  \u9996\u5148\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u9009\u62e9\u7684MQTT\u670d\u52a1\u5668\u3002\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u4f1a\u56e0\u4e0d\u540c\u7684\u670d\u52a1\u5668\u800c\u6709\u6240\u4e0d\u540c\uff0c\u4f46\u4e00\u822c\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b98\u65b9\u63d0\u4f9b\u7684\u5b89\u88c5\u5305\u6216\u547d\u4ee4\u884c\u5de5\u5177\u6765\u5b8c\u6210\u5b89\u88c5\u3002<\/p>\n

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

  \u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u8981\u5bf9MQTT\u670d\u52a1\u5668\u8fdb\u884c\u57fa\u672c\u7684\u914d\u7f6e\u3002\u914d\u7f6e\u5185\u5bb9\u5305\u62ec\u7aef\u53e3\u8bbe\u7f6e\u3001\u8ba4\u8bc1\u65b9\u5f0f\u3001\u5b89\u5168\u7b56\u7565\u7b49\u3002\u5408\u7406\u7684\u914d\u7f6e\u53ef\u4ee5\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\u548c\u6027\u80fd\u3002<\/p>\n

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

  \u5b8c\u6210\u5b89\u88c5\u548c\u914d\u7f6e\u540e\uff0c\u5373\u53ef\u542f\u52a8MQTT\u670d\u52a1\u5668\u3002\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u56fe\u5f62\u754c\u9762\u5de5\u5177\uff0c\u542f\u52a8\u670d\u52a1\u5668\u5e76\u76d1\u63a7\u670d\u52a1\u5668\u7684\u8fd0\u884c\u72b6\u6001\u3002\u786e\u4fdd\u670d\u52a1\u5668\u6b63\u5e38\u8fd0\u884c\u540e\uff0c\u5373\u53ef\u5f00\u59cb\u8fde\u63a5\u8bbe\u5907\u5e76\u8fdb\u884c\u6570\u636e\u4ea4\u6362\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86MQTT\u670d\u52a1\u5668\u7684\u57fa\u672c\u6982\u5ff5\u4ee5\u53ca\u4f7f\u7528MQTT\u670d\u52a1\u5668\u542f\u52a8\u7684\u6b65\u9aa4\u3002<\/strong>\u9009\u62e9\u5408\u9002\u7684MQTT\u670d\u52a1\u5668\u3001\u5b89\u88c5\u3001\u914d\u7f6e\u548c\u542f\u52a8\u90fd\u662f\u4f7f\u7528MQTT\u670d\u52a1\u5668\u7684\u91cd\u8981\u6b65\u9aa4\uff0c\u9700\u8981\u6211\u4eec\u8ba4\u771f\u5bf9\u5f85\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u4f7f\u7528MQTT\u670d\u52a1\u5668\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\u670d\u52a1\u5668\u662f\u4e00\u79cd\u7528\u4e8e\u4f20\u8f93\u4f20\u611f\u5668\u6570\u636e\u548c\u63a7\u5236\u547d\u4ee4\u7684\u8f7b\u91cf\u7ea7\u901a\u8baf\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u7684\u8fde\u63a5\u63d0\u4f9b\u9ad8\u6548\u7684\u901a\u8baf\u673a\u5236\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528MQTT\u670d\u52a1\u5668\u542f\u52a8\uff0c\u4ee5\u53ca\u76f8\u5173\u6ce8\u610f\u4e8b\u9879\u3002<\/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-79111","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\/79111","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=79111"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/79111\/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=79111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=79111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=79111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}