{"id":21173,"date":"2023-09-02T15:53:32","date_gmt":"2023-09-02T07:53:32","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=21173"},"modified":"2023-09-02T15:53:32","modified_gmt":"2023-09-02T07:53:32","slug":"rhdjmfwq","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/21173.html","title":{"rendered":"\u5982\u4f55\u642d\u5efaMQTT\u670d\u52a1\u5668"},"content":{"rendered":"
MQTT\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u7269\u8054\u7f51\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u7269\u8054\u7f51\u7cfb\u7edf\u3002\u672c\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u642d\u5efaMQTT\u670d\u52a1\u5668\uff0c\u4ee5\u53caMQTT\u670d\u52a1\u5668\u7684\u4f18\u52bf\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n
\u5728\u642d\u5efaMQTT\u670d\u52a1\u5668\u4e4b\u524d\uff0c\u9700\u8981\u51c6\u5907\u4e00\u53f0\u80fd\u591f\u652f\u6301MQTT\u670d\u52a1\u5668\u7684\u670d\u52a1\u5668\uff0c\u5e76\u5b89\u88c5\u652f\u6301MQTT\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6bd4\u5982Linux\u7cfb\u7edf\u3002<\/p>\n
\u5728\u786e\u5b9a\u4e86\u670d\u52a1\u5668\u7cfb\u7edf\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5b89\u88c5MQTT\u670d\u52a1\u5668\uff0c\u6709\u591a\u79cdMQTT\u670d\u52a1\u5668\u53ef\u4f9b\u9009\u62e9\uff0c\u6bd4\u5982Mosquitto\uff0cVerneMQ\uff0cEMQX\u7b49\u3002\u8fd9\u91cc\u4ee5Mosquitto\u4e3a\u4f8b\uff0c\u9996\u5148\u5c06Mosquitto\u670d\u52a1\u5668\u5b89\u88c5\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u7136\u540e\u542f\u52a8\u670d\u52a1\u5668\uff0c\u7b49\u5f85\u670d\u52a1\u5668\u542f\u52a8\u5b8c\u6210\u3002<\/p>\n
\u5728MQTT\u670d\u52a1\u5668\u542f\u52a8\u5b8c\u6210\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u914d\u7f6eMQTT\u670d\u52a1\u5668\uff0c\u914d\u7f6eMQTT\u670d\u52a1\u5668\u7684\u5185\u5bb9\u5305\u62ec\uff1a\u8bbe\u7f6e\u7528\u6237\u540d\u548c\u5bc6\u7801\u3001\u8bbe\u7f6e\u4e3b\u9898\u3001\u8bbe\u7f6e\u6d88\u606f\u53d1\u5e03\u548c\u8ba2\u9605\u3001\u8bbe\u7f6e\u6d88\u606f\u6301\u4e45\u6027\u7b49\u7b49\u3002<\/p>\n
MQTT\u670d\u52a1\u5668\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u7269\u8054\u7f51\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5728\u8d44\u6e90\u53d7\u9650\u7684\u8bbe\u5907\u4e0a\u4f7f\u7528\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u8fd0\u884c\u3002<\/p>\n
MQTT\u670d\u52a1\u5668\u53ef\u4ee5\u5728\u4f4e\u5ef6\u8fdf\u7684\u60c5\u51b5\u4e0b\u4f20\u8f93\u6570\u636e\uff0c\u8fd9\u5bf9\u4e8e\u5b9e\u65f6\u5e94\u7528\u975e\u5e38\u91cd\u8981\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5e94\u7528\u7684\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n
MQTT\u670d\u52a1\u5668\u5177\u6709\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\uff0c\u5b83\u652f\u6301SSL\/TLS\u52a0\u5bc6\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u540c\u65f6\u8fd8\u652f\u6301\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u6570\u636e\u7684\u53ef\u9760\u6027\u3002<\/p>\n
MQTT\u670d\u52a1\u5668\u53ef\u4ee5\u7528\u4e8e\u7269\u8054\u7f51\u5e94\u7528\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u7269\u8054\u7f51\u7cfb\u7edf\uff0c\u4ece\u800c\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u548c\u76d1\u63a7\u7b49\u529f\u80fd\u3002<\/p>\n
MQTT\u670d\u52a1\u5668\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\u5e94\u7528\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u667a\u80fd\u5bb6\u5c45\u7cfb\u7edf\uff0c\u4ece\u800c\u5b9e\u73b0\u5bb6\u5ead\u81ea\u52a8\u5316\u63a7\u5236\u7b49\u529f\u80fd\u3002<\/p>\n
MQTT\u670d\u52a1\u5668\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u533b\u7597\u5e94\u7528\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u667a\u80fd\u533b\u7597\u7cfb\u7edf\uff0c\u4ece\u800c\u5b9e\u73b0\u8fdc\u7a0b\u8bca\u65ad\u548c\u8fdc\u7a0b\u533b\u7597\u7b49\u529f\u80fd\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u642d\u5efaMQTT\u670d\u52a1\u5668\uff0cMQTT\u670d\u52a1\u5668\u7684\u4f18\u52bf\u548c\u5e94\u7528\u573a\u666f\u3002<\/strong>MQTT\u670d\u52a1\u5668\u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5728\u8d44\u6e90\u53d7\u9650\u7684\u8bbe\u5907\u4e0a\u4f7f\u7528\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u8fd0\u884c\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u7269\u8054\u7f51\u3001\u667a\u80fd\u5bb6\u5c45\u548c\u667a\u80fd\u533b\u7597\u7b49\u5e94\u7528\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" MQTT\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u7269\u8054\u7f51\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u642d\u5efa\u7269\u8054\u7f51\u7cfb\u7edf\u3002\u672c\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u642d\u5efaMQTT\u670d\u52a1\u5668\uff0c\u4ee5\u53caMQTT\u670d\u52a1\u5668\u7684\u4f18\u52bf\u548c\u5e94\u7528\u573a\u666f\u3002MQTT\u670d\u52a1\u5668<\/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-21173","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\/21173","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=21173"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/21173\/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=21173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=21173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=21173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}