{"id":21180,"date":"2023-09-26T15:11:31","date_gmt":"2023-09-26T07:11:31","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21180"},"modified":"2023-09-26T15:11:31","modified_gmt":"2023-09-26T07:11:31","slug":"mfwqdjj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21180.html","title":{"rendered":"MQTT\u670d\u52a1\u5668\u7aef\u7b80\u4ecb"},"content":{"rendered":"

  MQTT\uff08\u6d88\u606f\u961f\u5217\u9065\u6d4b\u4f20\u8f93\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7528\u4e8e\u8bbe\u5907\u548c\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u7684\u53ef\u9760\u3001\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\u3002\u5b83\u53ef\u4ee5\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u6570\u636e\uff0c\u7528\u4e8e\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u7684\u901a\u4fe1\u3002MQTT\u670d\u52a1\u5668\u7aef\u662f\u4e00\u4e2a\u53ef\u4ee5\u63a5\u6536\u548c\u53d1\u9001MQTT\u6d88\u606f\u7684\u670d\u52a1\u5668\u7a0b\u5e8f\uff0c\u5b83\u662fMQTT\u7cfb\u7edf\u7684\u6838\u5fc3\u90e8\u5206\uff0c\u8d1f\u8d23\u5904\u7406\u6240\u6709\u7684\u6d88\u606f\u4f20\u8f93\u3002<\/p>\n

MQTT\u670d\u52a1\u5668\u7aef\u7684\u7279\u70b9<\/h2>\n

  MQTT\u670d\u52a1\u5668\u7aef\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u7279\u6027\uff0c\u4f7f\u5176\u6210\u4e3a\u4e00\u4e2a\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\u3002\u5b83\u53ef\u4ee5\u63d0\u4f9b\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u652f\u6301\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0c\u63d0\u4f9b\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u5141\u8bb8\u5ba2\u6237\u7aef\u79bb\u7ebf\u65f6\u4fdd\u7559\u6d88\u606f\uff0c\u652f\u6301\u6d88\u606f\u7684\u52a0\u5bc6\u4f20\u8f93\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u652f\u6301\u591a\u79cd\u7f51\u7edc\u534f\u8bae\uff0c\u652f\u6301\u8fd0\u884c\u5728\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u683c\u5f0f\uff0c\u652f\u6301\u591a\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u6301\u4e45\u5316\u7b56\u7565\u7b49\u3002<\/p>\n

\u6d88\u606f\u4f20\u8f93\u7684\u4f4e\u5ef6\u8fdf<\/h3>\n

  MQTT\u670d\u52a1\u5668\u7aef\u63d0\u4f9b\u4e86\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u4f7f\u5ba2\u6237\u7aef\u80fd\u591f\u5feb\u901f\u6536\u53d1\u6d88\u606f\uff0c\u51cf\u5c11\u7f51\u7edc\u5ef6\u8fdf\uff0c\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\u3002MQTT\u670d\u52a1\u5668\u7aef\u8fd8\u63d0\u4f9b\u4e86\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u53ef\u9760\u4f20\u8f93\uff0c\u786e\u4fdd\u6d88\u606f\u4e0d\u4f1a\u4e22\u5931\u3002<\/p>\n

\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f<\/h3>\n

  MQTT\u670d\u52a1\u5668\u7aef\u652f\u6301\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u8ba2\u9605\u6307\u5b9a\u7684\u6d88\u606f\uff0c\u670d\u52a1\u7aef\u53ef\u4ee5\u5c06\u6d88\u606f\u53d1\u5e03\u5230\u6307\u5b9a\u7684\u4e3b\u9898\uff0c\u4ece\u800c\u5b9e\u73b0\u6d88\u606f\u7684\u53d1\u5e03\u548c\u8ba2\u9605\u3002<\/p>\n

\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00<\/h3>\n

  MQTT\u670d\u52a1\u5668\u7aef\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecJava\u3001C++\u3001Python\u3001Go\u3001Node.js\u7b49\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u4eba\u5458\u66f4\u52a0\u65b9\u4fbf\u5730\u4f7f\u7528MQTT\u3002<\/p>\n

\u652f\u6301\u591a\u79cd\u7f51\u7edc\u534f\u8bae<\/h3>\n

  MQTT\u670d\u52a1\u5668\u7aef\u652f\u6301\u591a\u79cd\u7f51\u7edc\u534f\u8bae\uff0c\u5305\u62ecTCP\u3001UDP\u3001HTTP\u7b49\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u4e0d\u540c\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u4f7f\u7528MQTT\u3002<\/p>\n

\u652f\u6301\u591a\u79cd\u6d88\u606f\u683c\u5f0f<\/h3>\n

  MQTT\u670d\u52a1\u5668\u7aef\u652f\u6301\u591a\u79cd\u6d88\u606f\u683c\u5f0f\uff0c\u5305\u62ecJSON\u3001XML\u3001Protobuf\u7b49\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u4f7f\u7528MQTT\u3002<\/p>\n

MQTT\u670d\u52a1\u5668\u7aef\u7684\u5e94\u7528<\/h2>\n

  MQTT\u670d\u52a1\u5668\u7aef\u53ef\u4ee5\u5e94\u7528\u4e8e\u8bb8\u591a\u4e0d\u540c\u7684\u573a\u666f\uff0c\u5305\u62ec\u7269\u8054\u7f51\u3001\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u6c7d\u8f66\u3001\u667a\u80fd\u5236\u9020\u3001\u667a\u80fd\u5065\u5eb7\u7b49\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f01\u4e1a\u66f4\u52a0\u9ad8\u6548\u5730\u5b9e\u73b0\u7269\u8054\u7f51\u5e94\u7528\uff0c\u5b9e\u73b0\u5b9e\u65f6\u6570\u636e\u91c7\u96c6\u3001\u8fdc\u7a0b\u63a7\u5236\u548c\u8bbe\u5907\u7ba1\u7406\u3002MQTT\u670d\u52a1\u5668\u7aef\u8fd8\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\uff0c\u5b9e\u73b0\u5bb6\u5ead\u8bbe\u5907\u4e4b\u95f4\u7684\u4e92\u8054\uff0c\u8ba9\u5bb6\u5ead\u66f4\u52a0\u667a\u80fd\u5316\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  MQTT\u670d\u52a1\u5668\u7aef\u662fMQTT\u6d88\u606f\u4f20\u8f93\u534f\u8bae\u7684\u6838\u5fc3\u90e8\u5206\uff0c\u5b83\u53ef\u4ee5\u63d0\u4f9b\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\uff0c\u652f\u6301\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u652f\u6301\u591a\u79cd\u7f51\u7edc\u534f\u8bae\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u683c\u5f0f\uff0c\u652f\u6301\u591a\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u6301\u4e45\u5316\u7b56\u7565\u7b49\uff0c\u53ef\u4ee5\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u3001\u667a\u80fd\u5bb6\u5c45\u7b49\u591a\u79cd\u573a\u666f\uff0c\u5e2e\u52a9\u4f01\u4e1a\u66f4\u52a0\u9ad8\u6548\u5730\u5b9e\u73b0\u7269\u8054\u7f51\u5e94\u7528\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

MQTT\uff08\u6d88\u606f\u961f\u5217\u9065\u6d4b\u4f20\u8f93\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7528\u4e8e\u8bbe\u5907\u548c\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u7684\u53ef\u9760\u3001\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u8f93\u3002\u5b83\u53ef\u4ee5\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u6570\u636e\uff0c\u7528\u4e8e\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u7684\u901a\u4fe1<\/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-21180","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\/21180","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=21180"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21180\/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=21180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}