{"id":21143,"date":"2023-09-25T01:01:38","date_gmt":"2023-09-24T17:01:38","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21143"},"modified":"2024-06-30T13:08:25","modified_gmt":"2024-06-30T05:08:25","slug":"mwfljrhjjzycjwt","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21143.html","title":{"rendered":"MQTT\u65e0\u6cd5\u8fde\u63a5\uff1a\u5982\u4f55\u89e3\u51b3\u8fd9\u4e00\u5e38\u89c1\u95ee\u9898"},"content":{"rendered":"

MQTT<\/strong><\/a>\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5728\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u4e0e\u5176\u4ed6\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff08\u5982HTTP\uff09\u76f8\u6bd4\u5177\u6709\u66f4\u5c0f\u7684\u5e26\u5bbd\u9700\u6c42\uff0c\u66f4\u4f4e\u7684\u5ef6\u8fdf\uff0c\u66f4\u5c0f\u7684\u7535\u91cf\u6d88\u8017\uff0c\u4ee5\u53ca\u66f4\u597d\u7684\u5b89\u5168\u6027\uff0c\u56e0\u6b64\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\uff08IoT\uff09\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u7136\u800c\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6709\u65f6MQTT\u4f1a\u51fa\u73b0\u65e0\u6cd5\u8fde\u63a5\u7684\u60c5\u51b5\uff0c\u8fd9\u662f\u4e00\u4e2a\u5f88\u5e38\u89c1\u7684\u95ee\u9898\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u8fd9\u79cd\u60c5\u51b5\u7684\u539f\u56e0\uff0c\u4ee5\u53ca\u5982\u4f55\u89e3\u51b3\u5b83\u3002<\/p>\n

MQTT\u65e0\u6cd5\u8fde\u63a5\u7684\u539f\u56e0<\/h2>\n

MQTT<\/a>\u65e0\u6cd5\u8fde\u63a5\u7684\u539f\u56e0\u6709\u5f88\u591a\uff0c\u6700\u5e38\u89c1\u7684\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n

1.\u9519\u8bef\u7684\u8fde\u63a5\u53c2\u6570<\/h3>\n

MQTT\u9700\u8981\u4f7f\u7528\u6b63\u786e\u7684\u8fde\u63a5\u53c2\u6570\uff0c\u5982IP\u5730\u5740\uff0c\u7aef\u53e3\u53f7\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u624d\u80fd\u6b63\u5e38\u8fde\u63a5\u3002\u5982\u679c\u4f7f\u7528\u7684\u662f\u9519\u8bef\u7684\u53c2\u6570\uff0c\u5219MQTT\u5c06\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n

2.\u7f51\u7edc\u95ee\u9898<\/h3>\n

MQTT\u8fde\u63a5\u9700\u8981\u7f51\u7edc\uff0c\u5982\u679c\u7f51\u7edc\u4e0d\u7a33\u5b9a\uff0c\u6216\u8005\u6709\u5176\u4ed6\u7f51\u7edc\u95ee\u9898\uff0c\u5219MQTT\u5c06\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n

3.\u670d\u52a1\u5668\u95ee\u9898<\/h3>\n

\u5982\u679cMQTT\u670d\u52a1\u5668\u51fa\u73b0\u6545\u969c\uff0c\u5219MQTT\u5c06\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n

4.\u5b89\u5168\u8bbe\u7f6e\u95ee\u9898<\/h3>\n

MQTT\u670d\u52a1\u5668\u53ef\u4ee5\u8bbe\u7f6e\u5b89\u5168\u8ba4\u8bc1\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u6ca1\u6709\u8bbe\u7f6e\u6b63\u786e\u7684\u5b89\u5168\u8ba4\u8bc1\uff0c\u5219MQTT\u5c06\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n

\u5982\u4f55\u89e3\u51b3MQTT\u65e0\u6cd5\u8fde\u63a5\u7684\u95ee\u9898<\/h2>\n

\u8981\u89e3\u51b3MQTT\u65e0\u6cd5\u8fde\u63a5\u7684\u95ee\u9898\uff0c\u9996\u5148\u8981\u786e\u5b9a\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4MQTT\u65e0\u6cd5\u8fde\u63a5\u3002\u6839\u636e\u4e0a\u6587\u63cf\u8ff0\u7684\u539f\u56e0\uff0c\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u6b65\u9aa4\u6765\u89e3\u51b3\u95ee\u9898\uff1a<\/p>\n

1.\u68c0\u67e5\u8fde\u63a5\u53c2\u6570<\/h3>\n

\u9996\u5148\uff0c\u68c0\u67e5MQTT\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u53c2\u6570\uff0c\u786e\u4fdd\u5176\u6b63\u786e\u65e0\u8bef\u3002<\/p>\n

2.\u68c0\u67e5\u7f51\u7edc<\/h3>\n

\u68c0\u67e5\u7f51\u7edc\uff0c\u786e\u4fdd\u7f51\u7edc\u7a33\u5b9a\uff0c\u6ca1\u6709\u5176\u4ed6\u7f51\u7edc\u95ee\u9898\u3002<\/p>\n

3.\u68c0\u67e5\u670d\u52a1\u5668<\/h3>\n

\u68c0\u67e5MQTT\u670d\u52a1\u5668\uff0c\u786e\u4fdd\u670d\u52a1\u5668\u6b63\u5e38\u8fd0\u884c\uff0c\u6ca1\u6709\u51fa\u73b0\u6545\u969c\u3002<\/p>\n

4.\u68c0\u67e5\u5b89\u5168\u8bbe\u7f6e<\/h3>\n

\u68c0\u67e5MQTT\u5ba2\u6237\u7aef\u7684\u5b89\u5168\u8bbe\u7f6e\uff0c\u786e\u4fdd\u5b89\u5168\u8ba4\u8bc1\u6b63\u786e\u65e0\u8bef\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

MQTT\u65e0\u6cd5\u8fde\u63a5\u662f\u4e00\u4e2a\u5f88\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u539f\u56e0\u6709\u5f88\u591a\uff0c\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u662f\u9519\u8bef\u7684\u8fde\u63a5\u53c2\u6570\uff0c\u7f51\u7edc\u95ee\u9898\uff0c\u670d\u52a1\u5668\u95ee\u9898\u4ee5\u53ca\u5b89\u5168\u8bbe\u7f6e\u95ee\u9898\u3002<\/strong>\u8981\u89e3\u51b3MQTT\u65e0\u6cd5\u8fde\u63a5\u7684\u95ee\u9898\uff0c\u9996\u5148\u8981\u786e\u5b9a\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4MQTT\u65e0\u6cd5\u8fde\u63a5\uff0c\u7136\u540e\u6839\u636e\u539f\u56e0\u91c7\u53d6\u76f8\u5e94\u7684\u63aa\u65bd\u6765\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5728\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u4e0e\u5176\u4ed6\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff08\u5982HTTP\uff09<\/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-21143","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\/21143","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=21143"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21143\/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=21143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}