{"id":23151,"date":"2023-08-29T22:49:30","date_gmt":"2023-08-29T14:49:30","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=23151"},"modified":"2024-06-30T13:15:15","modified_gmt":"2024-06-30T05:15:15","slug":"mxycssjzdcd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/23151.html","title":{"rendered":"MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u6700\u5927\u957f\u5ea6"},"content":{"rendered":"\n
\u3000\u3000MQTT<\/a>(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u4ee5\u53ca\u5176\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u610f\u4e49\u3002<\/p>\n\n\n\n\u3000\u3000\u4e00\u3001MQTT\u534f\u8bae\u7b80\u4ecb<\/h2>\n\n\n\n\u3000\u3000MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u6700\u521d\u7531IBM\u5f00\u53d1\uff0c\u7528\u4e8e\u8fde\u63a5\u53d7\u9650\u7684\u8bbe\u5907\u548c\u4f4e\u5e26\u5bbd\u7f51\u7edc\u3002MQTT\u534f\u8bae\u5177\u6709\u8f7b\u91cf\u7ea7\u3001\u4f4e\u529f\u8017\u3001\u53ef\u9760\u6027\u9ad8\u7b49\u7279\u70b9\uff0c\u56e0\u6b64\u5728\u7269\u8054\u7f51\u9886\u57df\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002<\/strong>MQTT\u534f\u8bae\u4f7f\u7528TCP\/IP\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u8d28\u91cf\u7b49\u7ea7\uff0c\u5e76\u4e14\u5177\u6709\u8f83\u4f4e\u7684\u7f51\u7edc\u5f00\u9500\u3002<\/p>\n\n\n\n\u3000\u3000\u4e8c\u3001MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6<\/h2>\n\n\n\n\u3000\u3000\u5728MQTT\u534f\u8bae<\/a>\u4e2d\uff0c\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u7531\u534f\u8bae\u672c\u8eab\u4ee5\u53ca\u4f7f\u7528\u7684QoS\u7ea7\u522b\u51b3\u5b9a\u3002MQTT\u534f\u8bae\u89c4\u5b9a\u4e86\u6bcf\u4e2a\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u4e3a256MB\uff0c\u8fd9\u662f\u534f\u8bae\u672c\u8eab\u5141\u8bb8\u7684\u6700\u5927\u957f\u5ea6\u3002\u7136\u800c\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7531\u4e8e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\uff0c\u5f88\u5c11\u6709\u60c5\u51b5\u9700\u8981\u4f20\u8f93\u5982\u6b64\u5927\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n\u3000\u3000QoS\u7ea7\u522b\u4e5f\u4f1a\u5f71\u54cdMQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u3002MQTT\u534f\u8bae\u5b9a\u4e49\u4e86\u4e09\u4e2aQoS\u7ea7\u522b\uff1a0\u7ea7\u522b(\u6700\u591a\u4e00\u6b21\u4f20\u8f93)\u30011\u7ea7\u522b(\u81f3\u5c11\u4e00\u6b21\u4f20\u8f93)\u548c2\u7ea7\u522b(\u4ec5\u4e00\u6b21\u4f20\u8f93)\u3002\u4e0d\u540c\u7684QoS\u7ea7\u522b\u5bf9\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u6709\u4e0d\u540c\u7684\u9650\u5236\u3002<\/p>\n\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a0\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u5b9e\u9645\u4e0a\u662f\u7531\u5e95\u5c42\u7684\u7f51\u7edc\u534f\u8bae(\u5982TCP\/IP)\u51b3\u5b9a\u7684\uff0c\u901a\u5e38\u4e3a64KB\u3002\u8fd9\u662f\u56e0\u4e3a\u5728QoS\u7ea7\u522b\u4e3a0\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u4e0d\u9700\u8981\u8fdb\u884c\u786e\u8ba4\u548c\u91cd\u4f20\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528\u66f4\u5927\u7684\u6570\u636e\u5305\u3002<\/li>\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a1\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u914d\u7f6e\u7684\u9650\u5236\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u5927\u957f\u5ea6\u4e3a64KB\u6216\u66f4\u5c0f\u3002<\/li>\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a2\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u540c\u6837\u53d7\u5230\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u914d\u7f6e\u7684\u9650\u5236\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u5927\u957f\u5ea6\u4e3a64KB\u6216\u66f4\u5c0f\u3002<\/li>\n<\/ul>\n\n\n\n\u3000\u3000\u4e09\u3001MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u6700\u5927\u957f\u5ea6\u7684\u5e94\u7528<\/h2>\n\n\n\n\u3000\u3000\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u975e\u5e38\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n<\/figure>\n\n\n\n\u3000\u30001. \u5927\u89c4\u6a21\u6570\u636e\u4f20\u8f93<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\uff0c\u4f8b\u5982\u4f20\u611f\u5668\u6570\u636e\u6216\u56fe\u50cf\u6570\u636e\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u6ce8\u610f\u9009\u62e9\u5408\u9002\u7684QoS\u7ea7\u522b\u548c\u9002\u5f53\u7684\u6d88\u606f\u5206\u5272\u7b56\u7565\u6765\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002<\/p>\n\n\n\n\u3000\u30002. \u5e26\u5bbd\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u4e00\u4e9b\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u4f20\u8f93\u5927\u91cf\u6570\u636e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u62e5\u5835\u548c\u5ef6\u8fdf\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u7684\u5e26\u5bbd\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n\u3000\u30003. \u8bbe\u5907\u5185\u5b58\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u5185\u5b58\u901a\u5e38\u662f\u6709\u9650\u7684\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u8bbe\u5907\u7684\u5185\u5b58\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u6ea2\u51fa\u548c\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n\n\n\n\u3000\u30004. \u5b89\u5168\u6027\u8003\u8651<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5bf9\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\u6216\u538b\u7f29\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u6027\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u9650\u5236\u3002<\/p>\n\n\n\n\u3000\u3000\u7ed3\u8bba\uff1a<\/h2>\n\n\n\n\u3000\u3000MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u5e94\u7528\u5e7f\u6cdb\u3002\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u6700\u5927\u957f\u5ea6\u53d7\u5230\u534f\u8bae\u672c\u8eab\u548c\u4f7f\u7528\u7684QoS\u7ea7\u522b\u7684\u5f71\u54cd\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u4f20\u8f93\u7b56\u7565\u3002\u901a\u8fc7\u5408\u7406\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\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-23151","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\/23151","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=23151"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/23151\/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=23151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=23151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=23151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u3000\u3000MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u6700\u521d\u7531IBM\u5f00\u53d1\uff0c\u7528\u4e8e\u8fde\u63a5\u53d7\u9650\u7684\u8bbe\u5907\u548c\u4f4e\u5e26\u5bbd\u7f51\u7edc\u3002MQTT\u534f\u8bae\u5177\u6709\u8f7b\u91cf\u7ea7\u3001\u4f4e\u529f\u8017\u3001\u53ef\u9760\u6027\u9ad8\u7b49\u7279\u70b9\uff0c\u56e0\u6b64\u5728\u7269\u8054\u7f51\u9886\u57df\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002<\/strong>MQTT\u534f\u8bae\u4f7f\u7528TCP\/IP\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u8d28\u91cf\u7b49\u7ea7\uff0c\u5e76\u4e14\u5177\u6709\u8f83\u4f4e\u7684\u7f51\u7edc\u5f00\u9500\u3002<\/p>\n\n\n\n\u3000\u3000\u4e8c\u3001MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6<\/h2>\n\n\n\n\u3000\u3000\u5728MQTT\u534f\u8bae<\/a>\u4e2d\uff0c\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u7531\u534f\u8bae\u672c\u8eab\u4ee5\u53ca\u4f7f\u7528\u7684QoS\u7ea7\u522b\u51b3\u5b9a\u3002MQTT\u534f\u8bae\u89c4\u5b9a\u4e86\u6bcf\u4e2a\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u4e3a256MB\uff0c\u8fd9\u662f\u534f\u8bae\u672c\u8eab\u5141\u8bb8\u7684\u6700\u5927\u957f\u5ea6\u3002\u7136\u800c\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7531\u4e8e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\uff0c\u5f88\u5c11\u6709\u60c5\u51b5\u9700\u8981\u4f20\u8f93\u5982\u6b64\u5927\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n\u3000\u3000QoS\u7ea7\u522b\u4e5f\u4f1a\u5f71\u54cdMQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u3002MQTT\u534f\u8bae\u5b9a\u4e49\u4e86\u4e09\u4e2aQoS\u7ea7\u522b\uff1a0\u7ea7\u522b(\u6700\u591a\u4e00\u6b21\u4f20\u8f93)\u30011\u7ea7\u522b(\u81f3\u5c11\u4e00\u6b21\u4f20\u8f93)\u548c2\u7ea7\u522b(\u4ec5\u4e00\u6b21\u4f20\u8f93)\u3002\u4e0d\u540c\u7684QoS\u7ea7\u522b\u5bf9\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u6709\u4e0d\u540c\u7684\u9650\u5236\u3002<\/p>\n\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a0\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u5b9e\u9645\u4e0a\u662f\u7531\u5e95\u5c42\u7684\u7f51\u7edc\u534f\u8bae(\u5982TCP\/IP)\u51b3\u5b9a\u7684\uff0c\u901a\u5e38\u4e3a64KB\u3002\u8fd9\u662f\u56e0\u4e3a\u5728QoS\u7ea7\u522b\u4e3a0\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u4e0d\u9700\u8981\u8fdb\u884c\u786e\u8ba4\u548c\u91cd\u4f20\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528\u66f4\u5927\u7684\u6570\u636e\u5305\u3002<\/li>\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a1\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u914d\u7f6e\u7684\u9650\u5236\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u5927\u957f\u5ea6\u4e3a64KB\u6216\u66f4\u5c0f\u3002<\/li>\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a2\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u540c\u6837\u53d7\u5230\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u914d\u7f6e\u7684\u9650\u5236\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u5927\u957f\u5ea6\u4e3a64KB\u6216\u66f4\u5c0f\u3002<\/li>\n<\/ul>\n\n\n\n\u3000\u3000\u4e09\u3001MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u6700\u5927\u957f\u5ea6\u7684\u5e94\u7528<\/h2>\n\n\n\n\u3000\u3000\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u975e\u5e38\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n<\/figure>\n\n\n\n\u3000\u30001. \u5927\u89c4\u6a21\u6570\u636e\u4f20\u8f93<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\uff0c\u4f8b\u5982\u4f20\u611f\u5668\u6570\u636e\u6216\u56fe\u50cf\u6570\u636e\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u6ce8\u610f\u9009\u62e9\u5408\u9002\u7684QoS\u7ea7\u522b\u548c\u9002\u5f53\u7684\u6d88\u606f\u5206\u5272\u7b56\u7565\u6765\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002<\/p>\n\n\n\n\u3000\u30002. \u5e26\u5bbd\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u4e00\u4e9b\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u4f20\u8f93\u5927\u91cf\u6570\u636e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u62e5\u5835\u548c\u5ef6\u8fdf\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u7684\u5e26\u5bbd\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n\u3000\u30003. \u8bbe\u5907\u5185\u5b58\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u5185\u5b58\u901a\u5e38\u662f\u6709\u9650\u7684\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u8bbe\u5907\u7684\u5185\u5b58\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u6ea2\u51fa\u548c\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n\n\n\n\u3000\u30004. \u5b89\u5168\u6027\u8003\u8651<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5bf9\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\u6216\u538b\u7f29\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u6027\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u9650\u5236\u3002<\/p>\n\n\n\n\u3000\u3000\u7ed3\u8bba\uff1a<\/h2>\n\n\n\n\u3000\u3000MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u5e94\u7528\u5e7f\u6cdb\u3002\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u6700\u5927\u957f\u5ea6\u53d7\u5230\u534f\u8bae\u672c\u8eab\u548c\u4f7f\u7528\u7684QoS\u7ea7\u522b\u7684\u5f71\u54cd\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u4f20\u8f93\u7b56\u7565\u3002\u901a\u8fc7\u5408\u7406\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\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-23151","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\/23151","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=23151"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/23151\/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=23151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=23151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=23151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u3000\u3000\u5728MQTT\u534f\u8bae<\/a>\u4e2d\uff0c\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u7531\u534f\u8bae\u672c\u8eab\u4ee5\u53ca\u4f7f\u7528\u7684QoS\u7ea7\u522b\u51b3\u5b9a\u3002MQTT\u534f\u8bae\u89c4\u5b9a\u4e86\u6bcf\u4e2a\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u4e3a256MB\uff0c\u8fd9\u662f\u534f\u8bae\u672c\u8eab\u5141\u8bb8\u7684\u6700\u5927\u957f\u5ea6\u3002\u7136\u800c\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7531\u4e8e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\uff0c\u5f88\u5c11\u6709\u60c5\u51b5\u9700\u8981\u4f20\u8f93\u5982\u6b64\u5927\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n\u3000\u3000QoS\u7ea7\u522b\u4e5f\u4f1a\u5f71\u54cdMQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u3002MQTT\u534f\u8bae\u5b9a\u4e49\u4e86\u4e09\u4e2aQoS\u7ea7\u522b\uff1a0\u7ea7\u522b(\u6700\u591a\u4e00\u6b21\u4f20\u8f93)\u30011\u7ea7\u522b(\u81f3\u5c11\u4e00\u6b21\u4f20\u8f93)\u548c2\u7ea7\u522b(\u4ec5\u4e00\u6b21\u4f20\u8f93)\u3002\u4e0d\u540c\u7684QoS\u7ea7\u522b\u5bf9\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u6709\u4e0d\u540c\u7684\u9650\u5236\u3002<\/p>\n\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a0\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u5b9e\u9645\u4e0a\u662f\u7531\u5e95\u5c42\u7684\u7f51\u7edc\u534f\u8bae(\u5982TCP\/IP)\u51b3\u5b9a\u7684\uff0c\u901a\u5e38\u4e3a64KB\u3002\u8fd9\u662f\u56e0\u4e3a\u5728QoS\u7ea7\u522b\u4e3a0\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u4e0d\u9700\u8981\u8fdb\u884c\u786e\u8ba4\u548c\u91cd\u4f20\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528\u66f4\u5927\u7684\u6570\u636e\u5305\u3002<\/li>\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a1\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u914d\u7f6e\u7684\u9650\u5236\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u5927\u957f\u5ea6\u4e3a64KB\u6216\u66f4\u5c0f\u3002<\/li>\n\n\n\n\u3000\u3000\u5728QoS\u7ea7\u522b\u4e3a2\u7684\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u540c\u6837\u53d7\u5230\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u914d\u7f6e\u7684\u9650\u5236\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u5927\u957f\u5ea6\u4e3a64KB\u6216\u66f4\u5c0f\u3002<\/li>\n<\/ul>\n\n\n\n\u3000\u3000\u4e09\u3001MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u6700\u5927\u957f\u5ea6\u7684\u5e94\u7528<\/h2>\n\n\n\n\u3000\u3000\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u975e\u5e38\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n<\/figure>\n\n\n\n\u3000\u30001. \u5927\u89c4\u6a21\u6570\u636e\u4f20\u8f93<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\uff0c\u4f8b\u5982\u4f20\u611f\u5668\u6570\u636e\u6216\u56fe\u50cf\u6570\u636e\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u6ce8\u610f\u9009\u62e9\u5408\u9002\u7684QoS\u7ea7\u522b\u548c\u9002\u5f53\u7684\u6d88\u606f\u5206\u5272\u7b56\u7565\u6765\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002<\/p>\n\n\n\n\u3000\u30002. \u5e26\u5bbd\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u4e00\u4e9b\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u4f20\u8f93\u5927\u91cf\u6570\u636e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u62e5\u5835\u548c\u5ef6\u8fdf\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u7684\u5e26\u5bbd\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n\u3000\u30003. \u8bbe\u5907\u5185\u5b58\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u5185\u5b58\u901a\u5e38\u662f\u6709\u9650\u7684\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u8bbe\u5907\u7684\u5185\u5b58\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u6ea2\u51fa\u548c\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n\n\n\n\u3000\u30004. \u5b89\u5168\u6027\u8003\u8651<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5bf9\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\u6216\u538b\u7f29\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u6027\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u9650\u5236\u3002<\/p>\n\n\n\n\u3000\u3000\u7ed3\u8bba\uff1a<\/h2>\n\n\n\n\u3000\u3000MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u5e94\u7528\u5e7f\u6cdb\u3002\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u6700\u5927\u957f\u5ea6\u53d7\u5230\u534f\u8bae\u672c\u8eab\u548c\u4f7f\u7528\u7684QoS\u7ea7\u522b\u7684\u5f71\u54cd\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u4f20\u8f93\u7b56\u7565\u3002\u901a\u8fc7\u5408\u7406\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\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-23151","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\/23151","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=23151"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/23151\/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=23151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=23151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=23151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u3000\u3000QoS\u7ea7\u522b\u4e5f\u4f1a\u5f71\u54cdMQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u3002MQTT\u534f\u8bae\u5b9a\u4e49\u4e86\u4e09\u4e2aQoS\u7ea7\u522b\uff1a0\u7ea7\u522b(\u6700\u591a\u4e00\u6b21\u4f20\u8f93)\u30011\u7ea7\u522b(\u81f3\u5c11\u4e00\u6b21\u4f20\u8f93)\u548c2\u7ea7\u522b(\u4ec5\u4e00\u6b21\u4f20\u8f93)\u3002\u4e0d\u540c\u7684QoS\u7ea7\u522b\u5bf9\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u6709\u4e0d\u540c\u7684\u9650\u5236\u3002<\/p>\n\n\n\n
\u3000\u3000\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u975e\u5e38\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n<\/figure>\n\n\n\n\u3000\u30001. \u5927\u89c4\u6a21\u6570\u636e\u4f20\u8f93<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\uff0c\u4f8b\u5982\u4f20\u611f\u5668\u6570\u636e\u6216\u56fe\u50cf\u6570\u636e\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u6ce8\u610f\u9009\u62e9\u5408\u9002\u7684QoS\u7ea7\u522b\u548c\u9002\u5f53\u7684\u6d88\u606f\u5206\u5272\u7b56\u7565\u6765\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002<\/p>\n\n\n\n\u3000\u30002. \u5e26\u5bbd\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u4e00\u4e9b\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u4f20\u8f93\u5927\u91cf\u6570\u636e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u62e5\u5835\u548c\u5ef6\u8fdf\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u7684\u5e26\u5bbd\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n\u3000\u30003. \u8bbe\u5907\u5185\u5b58\u9650\u5236<\/h3>\n\n\n\n\u3000\u3000\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u5185\u5b58\u901a\u5e38\u662f\u6709\u9650\u7684\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u8bbe\u5907\u7684\u5185\u5b58\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u6ea2\u51fa\u548c\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n\n\n\n\u3000\u30004. \u5b89\u5168\u6027\u8003\u8651<\/h3>\n\n\n\n\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5bf9\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\u6216\u538b\u7f29\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u6027\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u9650\u5236\u3002<\/p>\n\n\n\n\u3000\u3000\u7ed3\u8bba\uff1a<\/h2>\n\n\n\n\u3000\u3000MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u5e94\u7528\u5e7f\u6cdb\u3002\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u6700\u5927\u957f\u5ea6\u53d7\u5230\u534f\u8bae\u672c\u8eab\u548c\u4f7f\u7528\u7684QoS\u7ea7\u522b\u7684\u5f71\u54cd\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u4f20\u8f93\u7b56\u7565\u3002\u901a\u8fc7\u5408\u7406\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\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-23151","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\/23151","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=23151"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/23151\/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=23151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=23151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=23151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\uff0c\u4f8b\u5982\u4f20\u611f\u5668\u6570\u636e\u6216\u56fe\u50cf\u6570\u636e\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u6ce8\u610f\u9009\u62e9\u5408\u9002\u7684QoS\u7ea7\u522b\u548c\u9002\u5f53\u7684\u6d88\u606f\u5206\u5272\u7b56\u7565\u6765\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002<\/p>\n\n\n\n
\u3000\u3000\u5728\u4e00\u4e9b\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0c\u4f20\u8f93\u5927\u91cf\u6570\u636e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u62e5\u5835\u548c\u5ef6\u8fdf\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u7684\u5e26\u5bbd\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n
\u3000\u3000\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u5185\u5b58\u901a\u5e38\u662f\u6709\u9650\u7684\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6839\u636e\u8bbe\u5907\u7684\u5185\u5b58\u9650\u5236\u6765\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u6ea2\u51fa\u548c\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n\n\n\n
\u3000\u3000\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5bf9\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\u6216\u538b\u7f29\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u6027\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u53d7\u5230\u9650\u5236\u3002<\/p>\n\n\n\n
\u3000\u3000MQTT\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u5e94\u7528\u5e7f\u6cdb\u3002\u4e86\u89e3MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u6700\u5927\u957f\u5ea6\u53d7\u5230\u534f\u8bae\u672c\u8eab\u548c\u4f7f\u7528\u7684QoS\u7ea7\u522b\u7684\u5f71\u54cd\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u4f20\u8f93\u7b56\u7565\u3002\u901a\u8fc7\u5408\u7406\u8c03\u6574\u6570\u636e\u7684\u5927\u5c0f\u548c\u4f20\u8f93\u901f\u7387\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\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-23151","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\/23151","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=23151"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/23151\/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=23151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=23151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=23151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\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-23151","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\/23151","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=23151"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/23151\/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=23151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=23151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=23151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}