{"id":11733,"date":"2023-08-17T16:42:56","date_gmt":"2023-08-17T08:42:56","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=11733"},"modified":"2023-08-17T16:43:00","modified_gmt":"2023-08-17T08:43:00","slug":"wlwmxyjrl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/11733.html","title":{"rendered":"\u7269\u8054\u7f51MQTT\u534f\u8bae\u63a5\u5165\u91cf\u7684\u589e\u957f\u8d8b\u52bf"},"content":{"rendered":"\n
\u3000\u3000\u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u548c\u4f20\u611f\u5668\u88ab\u8fde\u63a5\u5230\u4e92\u8054\u7f51\u4e0a\u3002\u4e3a\u4e86\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u548c\u6570\u636e\u4f20\u8f93\uff0c\u5404\u79cd\u901a\u4fe1\u534f\u8bae\u5e94\u8fd0\u800c\u751f\u3002<\/strong>\u5176\u4e2d\uff0cMQTT(Message Queuing Telemetry Transport)\u534f\u8bae\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u3001\u53ef\u9760\u548c\u9ad8\u6548\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u63a2\u8ba8\u7269\u8054\u7f51MQTT\u534f\u8bae\u63a5\u5165\u91cf\u7684\u589e\u957f\u8d8b\u52bf\u4ee5\u53ca\u5176\u5e94\u7528\u524d\u666f\u3002<\/p>\n\n\n\n \u3000\u3000MQTT\u534f\u8bae\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03-\u8ba2\u9605\u6a21\u5f0f\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u6700\u521d\u7531IBM\u5f00\u53d1\uff0c\u7528\u4e8e\u4f20\u8f93\u5c0f\u578b\u8bbe\u5907\u548c\u4f20\u611f\u5668\u4e4b\u95f4\u7684\u6570\u636e\u3002\u76f8\u6bd4\u4e8e\u5176\u4ed6\u534f\u8bae\uff0cMQTT\u534f\u8bae\u5177\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n\n\n\n \u3000\u3000\u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u666e\u53ca\u548c\u5e94\u7528\u573a\u666f\u7684\u589e\u591a\uff0c\u7269\u8054\u7f51MQTT\u534f\u8bae\u7684\u63a5\u5165\u91cf\u5448\u73b0\u51fa\u6301\u7eed\u589e\u957f\u7684\u8d8b\u52bf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5bfc\u81f4\u63a5\u5165\u91cf\u589e\u957f\u7684\u539f\u56e0\uff1a<\/p>\n\n\n\n \u3000\u30001. \u8bbe\u5907\u8fde\u63a5\u589e\u52a0<\/strong>\uff1a\u968f\u7740\u7269\u8054\u7f51\u8bbe\u5907\u7684\u5feb\u901f\u666e\u53ca\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u9700\u8981\u63a5\u5165\u4e92\u8054\u7f51\u8fdb\u884c\u901a\u4fe1\u548c\u6570\u636e\u4f20\u8f93\u3002\u800cMQTT\u534f\u8bae\u4f5c\u4e3a\u4e00\u79cd\u9002\u7528\u4e8e\u7269\u8054\u7f51\u8bbe\u5907\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5176\u63a5\u5165\u91cf\u81ea\u7136\u4e5f\u968f\u4e4b\u589e\u52a0\u3002<\/p>\n\n\n\n \u3000\u30002. \u4f4e\u529f\u8017\u9700\u6c42<\/strong>\uff1a\u7269\u8054\u7f51\u8bbe\u5907\u901a\u5e38\u5177\u6709\u4f4e\u529f\u8017\u7684\u7279\u70b9\uff0c\u9700\u8981\u5728\u6709\u9650\u7684\u80fd\u6e90\u4f9b\u5e94\u4e0b\u8fdb\u884c\u957f\u65f6\u95f4\u8fd0\u884c\u3002\u800cMQTT\u534f\u8bae\u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u4f7f\u5f97\u5176\u5728\u4f4e\u529f\u8017\u8bbe\u5907\u4e0a\u7684\u5e94\u7528\u66f4\u52a0\u5e7f\u6cdb\uff0c\u4ece\u800c\u63a8\u52a8\u4e86\u5176\u63a5\u5165\u91cf\u7684\u589e\u957f\u3002<\/p>\n\n\n\n \u3000\u30003. \u5b89\u5168\u6027\u8981\u6c42<\/strong>\uff1a\u968f\u7740\u7269\u8054\u7f51\u7684\u53d1\u5c55\uff0c\u5bf9\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u5b89\u5168\u6027\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\u3002MQTT\u534f\u8bae\u63d0\u4f9b\u4e86\u57fa\u4e8eTLS\/SSL\u7684\u52a0\u5bc6\u673a\u5236\uff0c\u4fdd\u8bc1\u4e86\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u6570\u636e\u7684\u5b89\u5168\u4f20\u8f93\uff0c\u56e0\u6b64\u5728\u5b89\u5168\u6027\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002<\/p>\n\n\n\n \u3000\u3000\u7269\u8054\u7f51MQTT\u534f\u8bae\u7684\u5e94\u7528\u524d\u666f\u5e7f\u9614\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5178\u578b\u7684\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n \u3000\u30001. \u667a\u80fd\u5bb6\u5c45<\/strong>\uff1aMQTT\u534f\u8bae\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\u4e2d\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u548c\u63a7\u5236\u3002\u901a\u8fc7\u8ba2\u9605\u548c\u53d1\u5e03\u4e3b\u9898\uff0c\u7528\u6237\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u5bb6\u4e2d\u5404\u79cd\u8bbe\u5907\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u5982\u667a\u80fd\u706f\u5149\u3001\u667a\u80fd\u63d2\u5ea7\u7b49\u3002<\/p>\n\n\n\n \u3000\u30002. \u5de5\u4e1a\u81ea\u52a8\u5316<\/strong>\uff1a\u5728\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\uff0cMQTT\u534f\u8bae\u53ef\u4ee5\u7528\u4e8e\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u548c\u76d1\u63a7\u3002\u5de5\u5382\u4e2d\u7684\u4f20\u611f\u5668\u548c\u8bbe\u5907\u53ef\u4ee5\u901a\u8fc7MQTT\u534f\u8bae\u5c06\u6570\u636e\u53d1\u9001\u81f3\u4e91\u7aef\u8fdb\u884c\u5b9e\u65f6\u76d1\u63a7\u548c\u5206\u6790\u3002<\/p>\n\n\n\n \u3000\u30003. \u7269\u6d41\u548c\u4f9b\u5e94\u94fe\u7ba1\u7406<\/strong>\uff1aMQTT\u534f\u8bae\u53ef\u4ee5\u7528\u4e8e\u7269\u6d41\u548c\u4f9b\u5e94\u94fe\u7ba1\u7406\u4e2d\u7684\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\u548c\u8ddf\u8e2a\u3002\u901a\u8fc7\u8ba2\u9605\u548c\u53d1\u5e03\u76f8\u5173\u4e3b\u9898\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u8d27\u7269\u4f4d\u7f6e\u3001\u6e29\u5ea6\u7b49\u4fe1\u606f\u7684\u5b9e\u65f6\u76d1\u63a7\u548c\u8ffd\u8e2a\u3002<\/p>\n\n\n\n \u3000\u30004. \u519c\u4e1a\u9886\u57df<\/strong>\uff1a\u5728\u519c\u4e1a\u9886\u57df\uff0cMQTT\u534f\u8bae\u53ef\u4ee5\u7528\u4e8e\u519c\u4e1a\u8bbe\u5907\u7684\u8fdc\u7a0b\u63a7\u5236\u548c\u6570\u636e\u91c7\u96c6\u3002\u519c\u6c11\u53ef\u4ee5\u901a\u8fc7\u8ba2\u9605\u548c\u53d1\u5e03\u4e3b\u9898\uff0c\u5b9e\u73b0\u5bf9\u704c\u6e89\u7cfb\u7edf\u3001\u6e29\u5ba4\u7b49\u8bbe\u5907\u7684\u8fdc\u7a0b\u76d1\u63a7\u548c\u63a7\u5236\u3002<\/p>\n\n\n\n \u3000\u3000\u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u7269\u8054\u7f51MQTT\u534f\u8bae\u7684\u63a5\u5165\u91cf\u5448\u73b0\u51fa\u6301\u7eed\u589e\u957f\u7684\u8d8b\u52bf\u3002\u5176\u8f7b\u91cf\u7ea7\u3001\u53ef\u9760\u6027\u548c\u7075\u6d3b\u6027\u4f7f\u5f97\u5176\u5728\u7269\u8054\u7f51\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002<\/strong>\u672a\u6765\uff0c\u968f\u7740\u7269\u8054\u7f51\u8bbe\u5907\u6570\u91cf\u7684\u589e\u52a0\u548c\u5e94\u7528\u573a\u666f\u7684\u6269\u5c55\uff0c\u7269\u8054\u7f51MQTT\u534f\u8bae\u7684\u5e94\u7528\u524d\u666f\u5c06\u66f4\u52a0\u5e7f\u9614\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u548c\u4f20\u611f\u5668\u88ab\u8fde\u63a5\u5230\u4e92\u8054\u7f51\u4e0a\u3002\u4e3a\u4e86\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u548c\u6570\u636e\u4f20\u8f93\uff0c\u5404\u79cd\u901a\u4fe1\u534f\u8bae\u5e94\u8fd0\u800c\u751f\u3002\u5176\u4e2d\uff0cMQTT(Message Queuing Telemetry Transport)\u534f\u8bae\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u3001\u53ef\u9760\u548c\u9ad8\u6548\u7684\u901a\u4fe1\u534f\u8bae<\/p>\n","protected":false},"author":1,"featured_media":3671,"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-11733","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\/11733","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=11733"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/11733\/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=11733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=11733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=11733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000\u4e00\u3001\u7269\u8054\u7f51MQTT\u534f\u8bae\u7b80\u4ecb<\/h2>\n\n\n\n
\n
\u3000\u3000\u4e8c\u3001\u7269\u8054\u7f51MQTT\u534f\u8bae\u63a5\u5165\u91cf\u7684\u589e\u957f\u8d8b\u52bf<\/h2>\n\n\n\n
\u3000\u3000\u4e09\u3001\u7269\u8054\u7f51MQTT\u534f\u8bae\u7684\u5e94\u7528\u524d\u666f<\/h2>\n\n\n\n
\u3000\u3000\u603b\u7ed3\uff1a<\/h2>\n\n\n\n