{"id":21168,"date":"2023-08-30T15:52:13","date_gmt":"2023-08-30T07:52:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21168"},"modified":"2023-08-30T15:52:13","modified_gmt":"2023-08-30T07:52:13","slug":"djmfwqznw","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21168.html","title":{"rendered":"\u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51"},"content":{"rendered":"

  MQTT\u670d\u52a1\u5668\u642d\u5efa\u5728\u5185\u7f51\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u63d0\u4f9b\u670d\u52a1\u3002<\/strong>\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\uff0c\u4ee5\u53ca\u5b83\u7684\u4f18\u52bf\u3001\u529f\u80fd\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n

1. \u4ec0\u4e48\u662fMQTT\u670d\u52a1\u5668\uff1f<\/h2>\n

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u53d1\u5e03\/\u8ba2\u9605\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u53ef\u4ee5\u5728\u7269\u8054\u7f51\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u6d88\u606f\u4f20\u8f93\u3002MQTT\u670d\u52a1\u5668\u662f\u4e00\u79cd\u7279\u6b8a\u7684MQTT\u4ee3\u7406\uff0c\u53ef\u4ee5\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6d88\u606f\uff0c\u5e76\u5c06\u5b83\u4eec\u8f6c\u53d1\u7ed9\u7279\u5b9a\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n

2. \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u7684\u4f18\u52bf<\/h2>\n

1. \u5b89\u5168\u53ef\u9760<\/h3>\n

  \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u9ed1\u5ba2\u5165\u4fb5\uff0c\u4fdd\u8bc1\u6570\u636e\u5b89\u5168\u3002<\/p>\n

2. \u8282\u7701\u7f51\u7edc\u8d44\u6e90<\/h3>\n

  \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u7f51\u7edc\u8d44\u6e90\u7684\u6d88\u8017\uff0c\u8282\u7701\u7f51\u7edc\u5e26\u5bbd\uff0c\u63d0\u9ad8\u7f51\u7edc\u8fd0\u884c\u6548\u7387\u3002<\/p>\n

3. \u9ad8\u6548\u6d88\u606f\u4f20\u8f93<\/h3>\n

  \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u53ef\u4ee5\u63d0\u4f9b\u66f4\u9ad8\u6548\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u66f4\u5feb\u901f\u7684\u6d88\u606f\u63a8\u9001\uff0c\u66f4\u7a33\u5b9a\u7684\u670d\u52a1\u8d28\u91cf\u3002<\/p>\n

3. \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u7684\u5e94\u7528\u573a\u666f<\/h2>\n

1. \u5de5\u4e1a\u81ea\u52a8\u5316<\/h3>\n

  \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u53ef\u4ee5\u4e3a\u5de5\u4e1a\u81ea\u52a8\u5316\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u5b9e\u73b0\u8fdc\u7a0b\u76d1\u63a7\u3001\u63a7\u5236\u548c\u6570\u636e\u91c7\u96c6\u3002<\/p>\n

2. \u667a\u80fd\u5bb6\u5c45<\/h3>\n

  \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u53ef\u4ee5\u4e3a\u667a\u80fd\u5bb6\u5c45\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u5b9e\u73b0\u5bb6\u5ead\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u7684\u81ea\u52a8\u5316\u63a7\u5236\u3002<\/p>\n

3. \u667a\u80fd\u4ea4\u901a<\/h3>\n

  \u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\u53ef\u4ee5\u4e3a\u667a\u80fd\u4ea4\u901a\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u5b9e\u73b0\u8def\u706f\u3001\u4ea4\u901a\u4fe1\u53f7\u706f\u548c\u5176\u4ed6\u667a\u80fd\u8bbe\u5907\u4e4b\u95f4\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u5b9e\u73b0\u667a\u80fd\u4ea4\u901a\u7684\u81ea\u52a8\u5316\u63a7\u5236\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  MQTT\u670d\u52a1\u5668\u642d\u5efa\u5728\u5185\u7f51\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u63d0\u4f9b\u670d\u52a1\u3002<\/strong>\u5b83\u5177\u6709\u5b89\u5168\u53ef\u9760\u3001\u8282\u7701\u7f51\u7edc\u8d44\u6e90\u548c\u9ad8\u6548\u6d88\u606f\u4f20\u8f93\u7b49\u4f18\u52bf\uff0c\u53ef\u4ee5\u5e94\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\u3001\u667a\u80fd\u5bb6\u5c45\u548c\u667a\u80fd\u4ea4\u901a\u7b49\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\u670d\u52a1\u5668\u642d\u5efa\u5728\u5185\u7f51\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u8fde\u63a5\uff0c\u4e3a\u7269\u8054\u7f51\u8bbe\u5907\u63d0\u4f9b\u670d\u52a1\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u642d\u5efaMQTT\u670d\u52a1\u5668\u5728\u5185\u7f51\uff0c\u4ee5\u53ca\u5b83\u7684<\/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-21168","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\/21168","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=21168"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21168\/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=21168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}