{"id":11891,"date":"2023-08-20T01:23:49","date_gmt":"2023-08-19T17:23:49","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=11891"},"modified":"2023-08-20T01:23:52","modified_gmt":"2023-08-19T17:23:52","slug":"jymxydznjjkzxt","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/11891.html","title":{"rendered":"\u57fa\u4e8emqtt\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf"},"content":{"rendered":"\n

\u3000\u3000\u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u6210\u4e3a\u4e86\u73b0\u4ee3\u5bb6\u5ead\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u5176\u4e2d\uff0cMQTT\u534f\u8bae\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u4e3a\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u63d0\u4f9b\u4e86\u9ad8\u6548\u3001\u53ef\u9760\u7684\u901a\u4fe1\u65b9\u5f0f\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\uff0c\u63a2\u8ba8\u5176\u5b9e\u73b0\u667a\u80fd\u5316\u751f\u6d3b\u7684\u5173\u952e\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e00\u3001\u4ec0\u4e48\u662fMQTT\u534f\u8bae<\/h2>\n\n\n\n

\u3000\u3000MQTT(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u901a\u4fe1\u534f\u8bae\u3002<\/strong>\u5b83\u5177\u6709\u4f4e\u5e26\u5bbd\u3001\u4f4e\u529f\u8017\u3001\u5f00\u9500\u5c0f\u7684\u7279\u70b9\uff0c\u9002\u7528\u4e8e\u79fb\u52a8\u8bbe\u5907\u4e0e\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002MQTT\u534f\u8bae\u91c7\u7528\u4e86\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u5934\uff0c\u53ef\u4ee5\u5728\u5404\u79cd\u7f51\u7edc\u73af\u5883\u4e2d\u5feb\u901f\u4f20\u8f93\u6570\u636e\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e8c\u3001\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u7684\u57fa\u672c\u539f\u7406<\/h2>\n\n\n\n

\u3000\u3000\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u662f\u901a\u8fc7\u5c06\u5404\u79cd\u8bbe\u5907\u8fde\u63a5\u5230\u4e92\u8054\u7f51\uff0c\u5e76\u901a\u8fc7\u901a\u4fe1\u534f\u8bae\u8fdb\u884c\u6570\u636e\u4ea4\u6362\u548c\u63a7\u5236\u7684\u7cfb\u7edf\u3002\u5176\u57fa\u672c\u539f\u7406\u662f\u901a\u8fc7\u4f20\u611f\u5668\u91c7\u96c6\u73af\u5883\u4fe1\u606f\uff0c\u5c06\u5176\u53d1\u9001\u5230\u4e2d\u592e\u63a7\u5236\u5668\uff0c\u7136\u540e\u6839\u636e\u7528\u6237\u7684\u9700\u6c42\u5bf9\u8bbe\u5907\u8fdb\u884c\u63a7\u5236\u3002MQTT\u534f\u8bae\u4f5c\u4e3a\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u80fd\u591f\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u5b9e\u65f6\u901a\u4fe1\u548c\u63a7\u5236\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e09\u3001\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u7684\u5173\u952e\u7ec4\u6210\u90e8\u5206<\/h2>\n\n\n\n
    \n
  • \u3000\u30001. \u4f20\u611f\u5668\u548c\u6267\u884c\u5668\uff1a\u4f20\u611f\u5668\u7528\u4e8e\u91c7\u96c6\u73af\u5883\u4fe1\u606f\uff0c\u5982\u6e29\u5ea6\u3001\u6e7f\u5ea6\u3001\u5149\u7167\u7b49\uff0c\u6267\u884c\u5668\u7528\u4e8e\u5bf9\u8bbe\u5907\u8fdb\u884c\u63a7\u5236\uff0c\u5982\u5f00\u5173\u706f\u3001\u8c03\u8282\u6e29\u5ea6\u7b49\u3002<\/li>\n\n\n\n
  • \u3000\u30002. \u4e2d\u592e\u63a7\u5236\u5668\uff1a\u4e2d\u592e\u63a7\u5236\u5668\u662f\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u7684\u6838\u5fc3\uff0c\u8d1f\u8d23\u63a5\u6536\u4f20\u611f\u5668\u6570\u636e\u3001\u5904\u7406\u7528\u6237\u6307\u4ee4\uff0c\u5e76\u5c06\u63a7\u5236\u547d\u4ee4\u53d1\u9001\u7ed9\u6267\u884c\u5668\u3002<\/li>\n\n\n\n
  • \u3000\u30003. \u901a\u4fe1\u6a21\u5757\uff1a\u901a\u4fe1\u6a21\u5757\u8d1f\u8d23\u5c06\u4f20\u611f\u5668\u6570\u636e\u548c\u63a7\u5236\u547d\u4ee4\u901a\u8fc7MQTT\u534f\u8bae\u53d1\u9001\u5230\u4e91\u670d\u52a1\u5668\u6216\u5176\u4ed6\u8bbe\u5907\u3002<\/li>\n\n\n\n
  • \u3000\u30004. \u4e91\u670d\u52a1\u5668\uff1a\u4e91\u670d\u52a1\u5668\u8d1f\u8d23\u63a5\u6536\u548c\u5b58\u50a8\u4f20\u611f\u5668\u6570\u636e\uff0c\u5e76\u63d0\u4f9b\u8fdc\u7a0b\u63a7\u5236\u548c\u6570\u636e\u5206\u6790\u529f\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n

    \u3000\u3000\u56db\u3001\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u7684\u4f18\u52bf<\/h2>\n\n\n\n
      \n
    • \u3000\u30001. \u9ad8\u6548\u53ef\u9760\uff1aMQTT\u534f\u8bae\u91c7\u7528\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u5934\uff0c\u80fd\u591f\u5728\u4f4e\u5e26\u5bbd\u3001\u4e0d\u7a33\u5b9a\u7f51\u7edc\u73af\u5883\u4e0b\u9ad8\u6548\u4f20\u8f93\u6570\u636e\u3002<\/li>\n\n\n\n
    • \u3000\u30002. \u7075\u6d3b\u6269\u5c55\uff1a\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u53ef\u4ee5\u65b9\u4fbf\u5730\u6dfb\u52a0\u548c\u79fb\u9664\u8bbe\u5907\uff0c\u5b9e\u73b0\u7cfb\u7edf\u7684\u7075\u6d3b\u6269\u5c55\u3002<\/li>\n\n\n\n
    • \u3000\u30003. \u5b89\u5168\u6027\u9ad8\uff1aMQTT\u534f\u8bae\u652f\u6301SSL\/TLS\u52a0\u5bc6\uff0c\u4fdd\u8bc1\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u5b89\u5168\u6027\u3002<\/li>\n<\/ul>\n\n\n\n

      \u3000\u3000\u4e94\u3001\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u7684\u5e94\u7528\u573a\u666f<\/h2>\n\n\n\n
        \n
      • \u3000\u30001. \u5ba4\u5185\u73af\u5883\u76d1\u6d4b\uff1a\u901a\u8fc7\u4f20\u611f\u5668\u91c7\u96c6\u6e29\u5ea6\u3001\u6e7f\u5ea6\u3001CO2\u6d53\u5ea6\u7b49\u6570\u636e\uff0c\u5b9e\u65f6\u76d1\u6d4b\u5ba4\u5185\u73af\u5883\u3002<\/li>\n\n\n\n
      • \u3000\u30002. \u5b89\u9632\u7cfb\u7edf\uff1a\u901a\u8fc7\u4f20\u611f\u5668\u548c\u6444\u50cf\u5934\u5b9e\u65f6\u76d1\u6d4b\u623f\u5c4b\u5b89\u5168\u72b6\u51b5\uff0c\u5982\u5165\u4fb5\u3001\u706b\u707e\u7b49\u3002<\/li>\n\n\n\n
      • \u3000\u30003. \u80fd\u6e90\u7ba1\u7406\uff1a\u901a\u8fc7\u63a7\u5236\u8bbe\u5907\u7684\u5f00\u5173\u72b6\u6001\u548c\u8c03\u8282\u6e29\u5ea6\u7b49\u65b9\u5f0f\uff0c\u5b9e\u73b0\u80fd\u6e90\u7684\u6709\u6548\u5229\u7528\u3002<\/li>\n\n\n\n
      • \u3000\u30004. \u667a\u80fd\u5bb6\u7535\u63a7\u5236\uff1a\u901a\u8fc7\u624b\u673aApp\u6216\u8bed\u97f3\u52a9\u624b\u5bf9\u5bb6\u7535\u8bbe\u5907\u8fdb\u884c\u8fdc\u7a0b\u63a7\u5236\uff0c\u5b9e\u73b0\u667a\u80fd\u5316\u751f\u6d3b\u3002<\/li>\n<\/ul>\n\n\n\n

        \u3000\u3000\u516d\u3001\u603b\u7ed3<\/h2>\n\n\n\n

        \u3000\u3000\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u80fd\u591f\u5b9e\u73b0\u667a\u80fd\u5316\u751f\u6d3b\uff0c\u63d0\u9ad8\u751f\u6d3b\u8d28\u91cf\u548c\u4fbf\u5229\u6027\u3002\u5176\u9ad8\u6548\u53ef\u9760\u7684\u901a\u4fe1\u65b9\u5f0f\u3001\u7075\u6d3b\u6269\u5c55\u7684\u7cfb\u7edf\u67b6\u6784\u4ee5\u53ca\u5b89\u5168\u6027\u9ad8\u7684\u7279\u70b9\uff0c\u4f7f\u5176\u6210\u4e3a\u667a\u80fd\u5bb6\u5c45\u9886\u57df\u7684\u91cd\u8981\u6280\u672f\u3002<\/strong>\u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u57fa\u4e8eMQTT\u534f\u8bae\u7684\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u5c06\u4f1a\u6709\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u524d\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

        \u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u6210\u4e3a\u4e86\u73b0\u4ee3\u5bb6\u5ead\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u5176\u4e2d\uff0cMQTT\u534f\u8bae\u4f5c\u4e3a\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u4e3a\u667a\u80fd\u5bb6\u5c45\u63a7\u5236\u7cfb\u7edf\u63d0\u4f9b\u4e86\u9ad8\u6548\u3001\u53ef\u9760\u7684\u901a\u4fe1\u65b9\u5f0f\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-11891","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\/11891","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=11891"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/11891\/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=11891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=11891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=11891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}