{"id":11883,"date":"2023-08-20T00:43:24","date_gmt":"2023-08-19T16:43:24","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=11883"},"modified":"2023-08-20T00:43:27","modified_gmt":"2023-08-19T16:43:27","slug":"jsmdgzyl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/11883.html","title":{"rendered":"\u7b80\u8ff0MQTT\u7684\u5de5\u4f5c\u539f\u7406"},"content":{"rendered":"\n
\u3000\u3000\u968f\u7740\u7269\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u9700\u8981\u8fdb\u884c\u4e92\u8054\u4e92\u901a\u3002\u800cMQTT(Message Queue Telemetry Transport)\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u4ecb\u7ecdMQTT\u7684\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u5728\u7269\u8054\u7f51\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u6700\u65e9\u7531IBM\u5f00\u53d1\u5e76\u4e8e1999\u5e74\u53d1\u5e03\u3002\u5176\u8bbe\u8ba1\u76ee\u6807\u662f\u5728\u4f4e\u5e26\u5bbd\u3001\u4e0d\u7a33\u5b9a\u7f51\u7edc\u73af\u5883\u4e0b\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u53ef\u9760\u901a\u4fe1\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u91c7\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u578b\uff0c\u5305\u62ec\u4e09\u4e2a\u89d2\u8272\uff1a\u53d1\u5e03\u8005(Publisher)\u3001\u8ba2\u9605\u8005(Subscriber)\u548c\u4ee3\u7406\u670d\u52a1\u5668(Broker)\u3002\u53d1\u5e03\u8005\u5c06\u6d88\u606f\u53d1\u5e03\u5230\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u8ba2\u9605\u8005\u4ece\u4ee3\u7406\u670d\u52a1\u5668\u8ba2\u9605\u611f\u5174\u8da3\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u4f7f\u7528Topic\u6765\u6807\u8bc6\u611f\u5174\u8da3\u7684\u6d88\u606f\uff0c\u901a\u8fc7\u8ba2\u9605Topic\uff0c\u8ba2\u9605\u8005\u53ef\u4ee5\u63a5\u6536\u5230\u76f8\u5e94\u7684\u6d88\u606f\u3002\u5f53\u53d1\u5e03\u8005\u53d1\u5e03\u4e00\u6761\u6d88\u606f\u65f6\uff0c\u4ee3\u7406\u670d\u52a1\u5668\u5c06\u8be5\u6d88\u606f\u53d1\u9001\u7ed9\u8ba2\u9605\u8005\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u5b9a\u4e49\u4e86\u4e09\u79cd\u6d88\u606f\u8d28\u91cf\u7b49\u7ea7\uff1a<\/p>\n\n\n\n
\u3000\u3000MQTT\u5728\u667a\u80fd\u5bb6\u5c45\u9886\u57df\u4e2d\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002\u901a\u8fc7MQTT\u534f\u8bae\uff0c\u5404\u79cd\u667a\u80fd\u8bbe\u5907\u53ef\u4ee5\u5b9e\u73b0\u4e92\u8054\u4e92\u901a\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u624b\u673a\u6216\u5176\u4ed6\u7ec8\u7aef\u63a7\u5236\u5bb6\u5c45\u8bbe\u5907\u3002<\/p>\n\n\n\n
\u3000\u3000\u5728\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\uff0cMQTT\u53ef\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\u548c\u76d1\u63a7\u3002\u901a\u8fc7MQTT\u534f\u8bae\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u8fdc\u7a0b\u76d1\u63a7\u8bbe\u5907\u72b6\u6001\u3001\u5b9e\u65f6\u83b7\u53d6\u6570\u636e\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u63a7\u5236\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u53ef\u4ee5\u5e94\u7528\u4e8e\u7269\u6d41\u548c\u8fd0\u8f93\u9886\u57df\uff0c\u5b9e\u73b0\u5bf9\u8f66\u8f86\u3001\u8d27\u7269\u7b49\u4fe1\u606f\u7684\u5b9e\u65f6\u76d1\u63a7\u548c\u7ba1\u7406\u3002\u901a\u8fc7MQTT\u534f\u8bae\uff0c\u53ef\u4ee5\u5b9e\u65f6\u83b7\u53d6\u8f66\u8f86\u4f4d\u7f6e\u3001\u6e29\u6e7f\u5ea6\u7b49\u4fe1\u606f\uff0c\u63d0\u9ad8\u7269\u6d41\u8fd0\u8f93\u7684\u6548\u7387\u548c\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u4e2d\u53d1\u6325\u7740\u91cd\u8981\u7684\u4f5c\u7528\u3002\u5176\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u578b\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u4f7f\u5f97\u8bbe\u5907\u4e4b\u95f4\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u4e92\u8054\u4e92\u901a\u3002<\/strong>\u901a\u8fc7MQTT\u534f\u8bae\uff0c\u53ef\u4ee5\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u3001\u5de5\u4e1a\u81ea\u52a8\u5316\u3001\u7269\u6d41\u8fd0\u8f93\u7b49\u5404\u79cd\u5e94\u7528\u573a\u666f\u3002\u968f\u7740\u7269\u8054\u7f51\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cMQTT\u7684\u5e94\u7528\u524d\u666f\u5c06\u66f4\u52a0\u5e7f\u9614\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u968f\u7740\u7269\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u9700\u8981\u8fdb\u884c\u4e92\u8054\u4e92\u901a\u3002\u800cMQTT(Message Queue Telemetry Transport)\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002<\/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-11883","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\/11883","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=11883"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/11883\/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=11883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=11883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=11883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}