{"id":21175,"date":"2023-08-29T12:32:37","date_gmt":"2023-08-29T04:32:37","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21175"},"modified":"2023-08-29T12:32:37","modified_gmt":"2023-08-29T04:32:37","slug":"mljyhjdk","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21175.html","title":{"rendered":"MQTT\u8fde\u63a5\u4e00\u4f1a\u5c31\u65ad\u5f00"},"content":{"rendered":"
MQTT\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u8f7b\u677e\u5730\u5728\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u6d88\u606f\u4ea4\u6362\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u7269\u8054\u7f51\u5e94\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u5feb\u901f\u3001\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u4ece\u800c\u63d0\u9ad8\u5e94\u7528\u7684\u53ef\u7528\u6027\u3002\u7136\u800c\uff0c\u7531\u4e8eMQTT\u7684\u7279\u6b8a\u6027\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8fde\u63a5\u4f1a\u4e00\u4f1a\u5c31\u65ad\u5f00\uff0c\u4ece\u800c\u5f71\u54cd\u5e94\u7528\u7684\u6027\u80fd\u3002\u672c\u6587\u5c06\u4ecb\u7ecdMQTT\u8fde\u63a5\u4e00\u4f1a\u5c31\u65ad\u5f00\u7684\u539f\u56e0\uff0c\u4ee5\u53ca\u5982\u4f55\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002<\/p>\n
MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u7f51\u7edc\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u56e0\u6b64\uff0c\u7f51\u7edc\u95ee\u9898\u662f\u5bfc\u81f4MQTT\u8fde\u63a5\u65ad\u5f00\u7684\u4e3b\u8981\u539f\u56e0\u3002\u5f53\u7f51\u7edc\u51fa\u73b0\u6545\u969c\u65f6\uff0cMQTT\u8fde\u63a5\u4f1a\u65ad\u5f00\uff0c\u4ece\u800c\u5f71\u54cd\u5e94\u7528\u7684\u6027\u80fd\u3002\u6b64\u5916\uff0c\u7f51\u7edc\u5e26\u5bbd\u4e0d\u8db3\u4e5f\u4f1a\u5bfc\u81f4MQTT\u8fde\u63a5\u65ad\u5f00\u3002<\/p>\n
MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u62a5\u6587\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5982\u679c\u62a5\u6587\u4e2d\u7684\u6570\u636e\u4f20\u8f93\u51fa\u73b0\u9519\u8bef\uff0c\u5219MQTT\u8fde\u63a5\u53ef\u80fd\u4f1a\u65ad\u5f00\u3002\u4f8b\u5982\uff0c\u5982\u679c\u62a5\u6587\u4e2d\u7684\u6570\u636e\u8d85\u8fc7MQTT\u670d\u52a1\u5668\u8bbe\u7f6e\u7684\u6700\u5927\u957f\u5ea6\uff0c\u5219MQTT\u8fde\u63a5\u4f1a\u65ad\u5f00\u3002<\/p>\n
MQTT\u5ba2\u6237\u7aef\u4e5f\u53ef\u80fd\u4f1a\u51fa\u73b0\u64cd\u4f5c\u9519\u8bef\uff0c\u5bfc\u81f4MQTT\u8fde\u63a5\u65ad\u5f00\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u5c1d\u8bd5\u53d1\u9001\u4e00\u6761\u6d88\u606f\uff0c\u4f46MQTT\u670d\u52a1\u5668\u4e0d\u652f\u6301\u8be5\u6d88\u606f\u7c7b\u578b\uff0c\u5219MQTT\u8fde\u63a5\u4f1a\u65ad\u5f00\u3002<\/p>\n
\u9996\u5148\uff0c\u7528\u6237\u53ef\u4ee5\u68c0\u67e5\u7f51\u7edc\u72b6\u51b5\uff0c\u4ee5\u786e\u4fdd\u7f51\u7edc\u4fe1\u53f7\u826f\u597d\uff0c\u7f51\u7edc\u5e26\u5bbd\u5145\u8db3\uff0c\u4ee5\u53ca\u7f51\u7edc\u4e0d\u4f1a\u51fa\u73b0\u6545\u969c\u3002\u6b64\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u68c0\u67e5MQTT\u670d\u52a1\u5668\u7684\u72b6\u6001\uff0c\u786e\u4fddMQTT\u670d\u52a1\u5668\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n
\u5176\u6b21\uff0c\u7528\u6237\u53ef\u4ee5\u68c0\u67e5MQTT\u62a5\u6587\u4e2d\u7684\u6570\u636e\u4f20\u8f93\uff0c\u4ee5\u786e\u4fdd\u62a5\u6587\u4e2d\u7684\u6570\u636e\u4e0d\u4f1a\u8d85\u8fc7MQTT\u670d\u52a1\u5668\u7684\u6700\u5927\u957f\u5ea6\u3002\u6b64\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7279\u5b9a\u7684\u62a5\u6587\u683c\u5f0f\uff0c\u4ee5\u786e\u4fdd\u62a5\u6587\u7684\u6b63\u786e\u6027\u3002<\/p>\n
\u6700\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u68c0\u67e5MQTT\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\uff0c\u4ee5\u786e\u4fdd\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u662f\u6b63\u786e\u7684\u3002\u4f8b\u5982\uff0c\u7528\u6237\u53ef\u4ee5\u68c0\u67e5\u5ba2\u6237\u7aef\u5c1d\u8bd5\u53d1\u9001\u7684\u6d88\u606f\u7c7b\u578b\u662f\u5426\u88abMQTT\u670d\u52a1\u5668\u652f\u6301\uff0c\u4ee5\u786e\u4fddMQTT\u8fde\u63a5\u4e0d\u4f1a\u65ad\u5f00\u3002<\/p>\n
MQTT\u8fde\u63a5\u4e00\u4f1a\u5c31\u65ad\u5f00\u662f\u4e00\u4e2a\u68d8\u624b\u7684\u95ee\u9898\uff0c\u5b83\u53ef\u80fd\u4f1a\u5f71\u54cd\u5e94\u7528\u7684\u6027\u80fd\u3002<\/strong>\u7f51\u7edc\u95ee\u9898\u3001\u6570\u636e\u4f20\u8f93\u9519\u8bef\u548c\u5ba2\u6237\u7aef\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4MQTT\u8fde\u63a5\u65ad\u5f00\u3002\u56e0\u6b64\uff0c\u7528\u6237\u53ef\u4ee5\u68c0\u67e5\u7f51\u7edc\u72b6\u51b5\u3001\u68c0\u67e5\u6570\u636e\u4f20\u8f93\u548c\u68c0\u67e5\u5ba2\u6237\u7aef\u64cd\u4f5c\uff0c\u4ee5\u89e3\u51b3MQTT\u8fde\u63a5\u65ad\u5f00\u7684\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" MQTT\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u8f7b\u677e\u5730\u5728\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u6d88\u606f\u4ea4\u6362\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u7269\u8054\u7f51\u5e94\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u5feb\u901f\u3001\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u4ece\u800c\u63d0\u9ad8\u5e94\u7528\u7684\u53ef\u7528\u6027\u3002\u7136\u800c\uff0c\u7531<\/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-21175","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\/21175","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=21175"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21175\/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=21175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}