{"id":8935,"date":"2023-08-12T02:35:10","date_gmt":"2023-08-11T18:35:10","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=8935"},"modified":"2023-08-12T02:35:10","modified_gmt":"2023-08-11T18:35:10","slug":"mymqbylx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/8935.html","title":{"rendered":"MQTT5\u4e0eMQTT3\uff1a\u533a\u522b\u4e0e\u8054\u7cfb"},"content":{"rendered":"
\u3000\u3000\u672c\u6587\u5c06\u4ecb\u7ecdMQTT5\u4e0eMQTT3\u4e4b\u95f4\u7684\u533a\u522b\u4e0e\u8054\u7cfb\uff0cMQTT\u662f\u4e00\u79cd\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7528\u4e8e\u5c06\u6d88\u606f\u4ece\u53d1\u5e03\u8005\u53d1\u9001\u5230\u8ba2\u9605\u8005\u3002MQTT5\u548cMQTT3\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u7248\u672c\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\uff0c\u672c\u6587\u5c06\u4ecb\u7ecd\u8fd9\u4e9b\u533a\u522b\u3002<\/p>\n
\u3000\u3000MQTT5\u662f\u6700\u65b0\u7684MQTT\u534f\u8bae\u7248\u672c\uff0c\u5b83\u662f\u5728MQTT3.1.1\u57fa\u7840\u4e0a\u5f00\u53d1\u7684\uff0c\u662f\u4e00\u79cd\u9762\u5411\u7269\u8054\u7f51\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u53ef\u9760\u7684\u3001\u5b89\u5168\u7684\u3001\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\u3002MQTT5\u652f\u6301QoS0\uff0cQoS1\u548cQoS2\u4e09\u79cd\u670d\u52a1\u8d28\u91cf\u7b49\u7ea7\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002MQTT5\u8fd8\u652f\u6301\u6d88\u606f\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u53ef\u4ee5\u786e\u4fdd\u6d88\u606f\u7684\u53ef\u9760\u4f20\u8f93\u3002\u6b64\u5916\uff0cMQTT5\u8fd8\u652f\u6301\u6d88\u606f\u7684\u5b89\u5168\u4f20\u8f93\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u9632\u6b62\u6076\u610f\u653b\u51fb\u3002<\/p>\n
\u3000\u3000MQTT3\u662f\u6700\u521d\u7684MQTT\u534f\u8bae\u7248\u672c\uff0c\u5b83\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5b9e\u73b0\u53ef\u9760\u7684\u3001\u5b89\u5168\u7684\u3001\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\u3002MQTT3\u652f\u6301QoS0\uff0cQoS1\u548cQoS2\u4e09\u79cd\u670d\u52a1\u8d28\u91cf\u7b49\u7ea7\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002MQTT3\u8fd8\u652f\u6301\u6d88\u606f\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u53ef\u4ee5\u786e\u4fdd\u6d88\u606f\u7684\u53ef\u9760\u4f20\u8f93\u3002MQTT3\u4e0d\u652f\u6301\u6d88\u606f\u7684\u5b89\u5168\u4f20\u8f93\uff0c\u53ef\u80fd\u4f1a\u53d7\u5230\u6076\u610f\u653b\u51fb\u7684\u5f71\u54cd\u3002<\/p>\n
\u3000\u3000MQTT5\u4e0eMQTT3\u4e4b\u95f4\u6709\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n
\u3000\u3000\u672c\u6587\u4ecb\u7ecd\u4e86MQTT5\u4e0eMQTT3\u4e4b\u95f4\u7684\u533a\u522b\u4e0e\u8054\u7cfb\u3002MQTT5\u662f\u6700\u65b0\u7684MQTT\u534f\u8bae\u7248\u672c\uff0c\u5b83\u662f\u5728MQTT3.1.1\u57fa\u7840\u4e0a\u5f00\u53d1\u7684\uff0c\u652f\u6301\u66f4\u591a\u7684\u6d88\u606f\u7c7b\u578b\uff0c\u652f\u6301\u66f4\u591a\u7684\u670d\u52a1\u8d28\u91cf\u7b49\u7ea7\uff0c\u652f\u6301\u6d88\u606f\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u652f\u6301\u6d88\u606f\u7684\u5b89\u5168\u4f20\u8f93\u3002MQTT3\u662f\u6700\u521d\u7684MQTT\u534f\u8bae\u7248\u672c\uff0c\u5b83\u652f\u6301QoS0\uff0cQoS1\u548cQoS2\u4e09\u79cd\u670d\u52a1\u8d28\u91cf\u7b49\u7ea7\uff0c\u652f\u6301\u6d88\u606f\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u4f46\u4e0d\u652f\u6301\u6d88\u606f\u7684\u5b89\u5168\u4f20\u8f93\u3002\u901a\u8fc7\u5bf9\u6bd4\uff0c\u53ef\u4ee5\u53d1\u73b0MQTT5\u4e0eMQTT3\u4e4b\u95f4\u6709\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u672c\u6587\u5c06\u4ecb\u7ecdMQTT5\u4e0eMQTT3\u4e4b\u95f4\u7684\u533a\u522b\u4e0e\u8054\u7cfb\uff0cMQTT\u662f\u4e00\u79cd\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7528\u4e8e\u5c06\u6d88\u606f\u4ece\u53d1\u5e03\u8005\u53d1\u9001\u5230\u8ba2\u9605\u8005\u3002MQTT5\u548cMQTT3\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u7248\u672c\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709<\/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-8935","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\/8935","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=8935"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/8935\/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=8935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=8935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=8935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}