{"id":79109,"date":"2024-01-07T04:17:27","date_gmt":"2024-01-06T20:17:27","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=79109"},"modified":"2024-01-07T04:17:27","modified_gmt":"2024-01-06T20:17:27","slug":"symjs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/79109.html","title":{"rendered":"\u4f7f\u7528MQTT Server\u67b6\u8bbe"},"content":{"rendered":"
MQTT\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7ecf\u5e38\u7528\u4e8e\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u8baf\u3002\u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u642d\u5efaMQTT Server\uff0c\u8ba9\u60a8\u8f7b\u677e\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u9ad8\u6548\u901a\u8baf\u3002<\/p>\n
MQTT Server\u662f\u4e00\u79cd\u4e2d\u95f4\u4ef6\uff0c\u7528\u4e8e\u5904\u7406\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u6d88\u606f\u4f20\u8f93\u3002\u5b83\u5145\u5f53\u4e86\u8fde\u63a5\u53d1\u5e03\u8005\uff08Publisher\uff09\u548c\u8ba2\u9605\u8005\uff08Subscriber\uff09\u4e4b\u95f4\u7684\u6865\u6881\uff0c\u5c06\u6d88\u606f\u4ece\u53d1\u5e03\u8005\u4f20\u9001\u5230\u8ba2\u9605\u8005\u3002<\/p>\n
\u642d\u5efa\u81ea\u5df1\u7684MQTT Server\u80fd\u591f\u63d0\u4f9b\u66f4\u7a33\u5b9a\u548c\u5b89\u5168\u7684\u6d88\u606f\u4f20\u8f93\u901a\u9053\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u7075\u6d3b\u5b9a\u5236\u5404\u79cd\u529f\u80fd\uff0c\u6ee1\u8db3\u7279\u5b9a\u7684\u7269\u8054\u7f51\u5e94\u7528\u9700\u6c42\u3002<\/p>\n
\u9996\u5148\uff0c\u60a8\u9700\u8981\u9009\u62e9\u9002\u5408\u7684MQTT Server\u8f6f\u4ef6\uff0c\u4f8b\u5982Mosquitto\u3001EMQ X\u7b49\u3002\u8fd9\u4e9b\u8f6f\u4ef6\u90fd\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u6587\u6863\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n
\u5b89\u88c5\u548c\u914d\u7f6eMQTT Server\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u57fa\u7840\uff0c\u60a8\u9700\u8981\u4e86\u89e3\u5982\u4f55\u5728\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5b89\u88c5\u8f6f\u4ef6\uff0c\u5e76\u6309\u7167\u6587\u6863\u8fdb\u884c\u76f8\u5e94\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u5b89\u5168\u8bbe\u7f6e\u3001\u7528\u6237\u6743\u9650\u7b49\u3002<\/p>\n
\u5728\u5b89\u88c5\u548c\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u8fdb\u884c\u6d88\u606f\u4f20\u8f93\u7684\u6d4b\u8bd5\uff0c\u786e\u4fddMQTT Server\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002\u5728\u6d4b\u8bd5\u901a\u8fc7\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u5c06MQTT Server\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u63d0\u4f9b\u7a33\u5b9a\u7684\u6d88\u606f\u901a\u8baf\u670d\u52a1\u4e86\u3002<\/p>\n
\u642d\u5efaMQTT Server\u4e0d\u4ec5\u80fd\u591f\u63d0\u4f9b\u7a33\u5b9a\u7684\u6d88\u606f\u4f20\u8f93\u901a\u9053\uff0c\u8fd8\u53ef\u4ee5\u6781\u5927\u5730\u589e\u5f3a\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u8fde\u63a5\u548c\u4e92\u901a\u6027\u3002<\/strong>\u5e0c\u671b\u672c\u6587\u4ecb\u7ecd\u7684\u5185\u5bb9\u80fd\u591f\u5e2e\u52a9\u60a8\u987a\u5229\u5730\u642d\u5efa\u5c5e\u4e8e\u81ea\u5df1\u7684MQTT Server\uff0c\u4e3a\u7269\u8054\u7f51\u5e94\u7528\u7684\u53d1\u5c55\u8d21\u732e\u529b\u91cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" MQTT\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7ecf\u5e38\u7528\u4e8e\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u8baf\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u642d\u5efaMQTTServer\uff0c\u8ba9\u60a8\u8f7b\u677e\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u9ad8\u6548\u901a\u8baf\u3002MQTTServe<\/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-79109","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\/79109","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=79109"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/79109\/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=79109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=79109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=79109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}