{"id":21150,"date":"2023-09-27T09:42:57","date_gmt":"2023-09-27T01:42:57","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21150"},"modified":"2023-09-27T09:42:57","modified_gmt":"2023-09-27T01:42:57","slug":"mtxxyljwlwsj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21150.html","title":{"rendered":"MQTT\u901a\u4fe1\u534f\u8bae\uff1a\u8fde\u63a5\u7269\u8054\u7f51\u4e16\u754c"},"content":{"rendered":"
MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\uff08publish\/subscribe\uff09\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u5728\u7269\u8054\u7f51\uff08IoT\uff09\u73af\u5883\u4e2d\u8d77\u5230\u6781\u5927\u7684\u4f5c\u7528\uff0c\u662f\u7269\u8054\u7f51\u7684\u6838\u5fc3\u6280\u672f\u4e4b\u4e00\u3002MQTT\u53ef\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\uff0c\u8ba9\u7269\u8054\u7f51\u8bbe\u5907\u53ef\u4ee5\u5b9e\u65f6\u5730\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u4ece\u800c\u53ef\u4ee5\u8ba9\u7269\u8054\u7f51\u66f4\u52a0\u667a\u80fd\u5316\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdMQTT\u534f\u8bae\uff0c\u5305\u62ec\u5b83\u7684\u7279\u70b9\u3001\u5e94\u7528\u573a\u666f\u548c\u4f18\u52bf\u3002<\/p>\n
MQTT\u534f\u8bae\u6700\u5927\u7684\u7279\u70b9\u5c31\u662f\u8f7b\u91cf\u7ea7\uff0c\u5b83\u53ea\u9700\u89812-3KB\u7684\u5e26\u5bbd\uff0c\u53ef\u4ee5\u5728\u4f4e\u5e26\u5bbd\u7684\u73af\u5883\u4e2d\u5b9e\u73b0\u53ef\u9760\u7684\u8fde\u63a5\u3002MQTT\u534f\u8bae\u4e5f\u53ef\u4ee5\u5728\u4f4e\u529f\u8017\u7684\u8bbe\u5907\u4e0a\u5b9e\u73b0\uff0c\u8fd9\u5bf9\u4e8e\u90a3\u4e9b\u7535\u6c60\u4f9b\u7535\u7684\u8bbe\u5907\u6765\u8bf4\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u5b83\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u8bbe\u5907\u7684\u529f\u8017\uff0c\u5ef6\u957f\u8bbe\u5907\u7684\u4f7f\u7528\u5bff\u547d\u3002<\/p>\n
MQTT\u534f\u8bae\u5177\u6709\u5f88\u597d\u7684\u53ef\u9760\u6027\uff0c\u5b83\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u53ef\u9760\u4f20\u8f93\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u5230\u8fbe\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u6709\u5e8f\u6027\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u5b8c\u6574\u6027\u3002MQTT\u534f\u8bae\u8fd8\u652f\u6301\u6d88\u606f\u7684\u786e\u8ba4\u673a\u5236\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u53ef\u9760\u4f20\u8f93\uff0c\u4ece\u800c\u786e\u4fdd\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\u3002<\/p>\n
MQTT\u534f\u8bae\u4e5f\u5177\u6709\u5f88\u597d\u7684\u5b89\u5168\u6027\uff0c\u5b83\u652f\u6301SSL\/TLS\u52a0\u5bc6\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u8fde\u63a5\u7684\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u9632\u6b62\u9ed1\u5ba2\u653b\u51fb\uff0c\u4e5f\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u6570\u636e\u6cc4\u9732\u7684\u53d1\u751f\u3002MQTT\u534f\u8bae\u4e5f\u652f\u6301\u5ba2\u6237\u7aef\u8ba4\u8bc1\uff0c\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u672a\u7ecf\u6388\u6743\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u4ece\u800c\u4fdd\u8bc1\u4e86\u6570\u636e\u7684\u5b89\u5168\u6027\u3002<\/p>\n
MQTT\u534f\u8bae\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bb6\u5ead\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\uff0c\u53ef\u4ee5\u8ba9\u5bb6\u5ead\u8bbe\u5907\u5b9e\u65f6\u5730\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u4ece\u800c\u5b9e\u73b0\u5bb6\u5ead\u81ea\u52a8\u5316\u63a7\u5236\u3002MQTT\u534f\u8bae\u53ef\u4ee5\u5b9e\u73b0\u5bb6\u5ead\u8bbe\u5907\u4e4b\u95f4\u7684\u8054\u52a8\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bb6\u5ead\u7684\u667a\u80fd\u5316\u63a7\u5236\uff0c\u53ef\u4ee5\u8ba9\u5bb6\u5ead\u8bbe\u5907\u4e4b\u95f4\u5b9e\u73b0\u65e0\u7f1d\u7684\u8fde\u63a5\uff0c\u4ece\u800c\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u3002<\/p>\n
MQTT\u534f\u8bae\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5de5\u5382\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\uff0c\u53ef\u4ee5\u8ba9\u5de5\u5382\u8bbe\u5907\u5b9e\u65f6\u5730\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u4ece\u800c\u5b9e\u73b0\u5de5\u5382\u81ea\u52a8\u5316\u63a7\u5236\u3002MQTT\u534f\u8bae\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u5de5\u5382\u8bbe\u5907\u4e4b\u95f4\u7684\u8054\u52a8\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5de5\u5382\u7684\u667a\u80fd\u5316\u63a7\u5236\uff0c\u53ef\u4ee5\u8ba9\u5de5\u5382\u8bbe\u5907\u4e4b\u95f4\u5b9e\u73b0\u65e0\u7f1d\u7684\u8fde\u63a5\uff0c\u4ece\u800c\u5b9e\u73b0\u5de5\u4e1a\u81ea\u52a8\u5316\u3002<\/p>\n
MQTT\u534f\u8bae\u5177\u6709\u5f88\u597d\u7684\u4f4e\u5ef6\u8fdf\u6027\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u7684\u6570\u636e\u4f20\u8f93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u7684\u63a7\u5236\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u7684\u76d1\u63a7\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u7684\u53cd\u9988\uff0c\u4ece\u800c\u53ef\u4ee5\u964d\u4f4e\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u5ef6\u8fdf\uff0c\u53ef\u4ee5\u8ba9\u7269\u8054\u7f51\u8bbe\u5907\u66f4\u52a0\u667a\u80fd\u5316\u3002<\/p>\n
MQTT\u534f\u8bae\u5177\u6709\u5f88\u597d\u7684\u53ef\u6269\u5c55\u6027\uff0c\u5b83\u652f\u6301\u591a\u4e2a\u5ba2\u6237\u7aef\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u53ef\u9760\u4f20\u8f93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u53ef\u9760\u63a7\u5236\uff0c\u4ece\u800c\u53ef\u4ee5\u6ee1\u8db3\u7269\u8054\u7f51\u8bbe\u5907\u7684\u53ef\u6269\u5c55\u6027\u9700\u6c42\u3002<\/p>\n
MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5177\u6709\u8f7b\u91cf\u7ea7\u3001\u53ef\u9760\u6027\u548c\u5b89\u5168\u6027\u7b49\u7279\u70b9\uff0c\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\u548c\u5de5\u4e1a\u81ea\u52a8\u5316\u7b49\u573a\u666f\uff0c\u5177\u6709\u4f4e\u5ef6\u8fdf\u548c\u53ef\u6269\u5c55\u6027\u7b49\u4f18\u52bf\uff0c\u662f\u7269\u8054\u7f51\u7684\u6838\u5fc3\u6280\u672f\u4e4b\u4e00\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\uff0c\u4ece\u800c\u53ef\u4ee5\u8ba9\u7269\u8054\u7f51\u66f4\u52a0\u667a\u80fd\u5316\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":" MQTT\uff08MessageQueuingTelemetryTransport\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\uff08publish\/subscribe\uff09\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u5728\u7269\u8054\u7f51\uff08<\/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-21150","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\/21150","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=21150"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21150\/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=21150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}