{"id":29593,"date":"2023-09-17T05:42:15","date_gmt":"2023-09-16T21:42:15","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=29593"},"modified":"2023-09-17T05:42:15","modified_gmt":"2023-09-16T21:42:15","slug":"xsxxtxclm","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/29593.html","title":{"rendered":"\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u9664\u4e86MQTT"},"content":{"rendered":"
\u968f\u7740\u4e92\u8054\u7f51\u6280\u672f\u7684\u53d1\u5c55\uff0c\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u5df2\u6210\u4e3a\u4eba\u4eec\u65e5\u5e38\u751f\u6d3b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u7684\u6280\u672f\u6709\u5f88\u591a\uff0c\u5176\u4e2dMQTT\uff08Message Queuing Telemetry Transport\uff09\u6280\u672f\u662f\u6700\u5e38\u7528\u7684\u3002\u4f46\u662f\uff0c\u9664\u4e86MQTT\uff0c\u8fd8\u6709\u5176\u4ed6\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u6280\u672f\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5176\u4ed6\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u6280\u672f\uff0c\u4ee5\u4fbf\u8bfb\u8005\u80fd\u591f\u66f4\u597d\u5730\u4e86\u89e3\u8fd9\u4e9b\u6280\u672f\uff0c\u5e76\u9009\u62e9\u6700\u9002\u5408\u81ea\u5df1\u5e94\u7528\u7684\u6280\u672f\u3002<\/p>\n
HTTP\uff08Hypertext Transfer Protocol\uff09\u662f\u4e00\u79cd\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u8d85\u6587\u672c\u6587\u6863\uff0c\u5982HTML\u6587\u4ef6\u3002\u5b83\u662f\u4e00\u79cd\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u4e3b\u8981\u7528\u4e8eWeb\u6d4f\u89c8\u5668\u548cWeb\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5b83\u7684\u7279\u70b9\u662f\u53ef\u9760\u6027\u9ad8\uff0c\u5b89\u5168\u6027\u9ad8\uff0c\u901a\u4fe1\u6548\u7387\u4f4e\uff0c\u4e0d\u9002\u5408\u5b9e\u65f6\u5e94\u7528\u3002<\/p>\n
WebSocket\u662f\u4e00\u79cd\u57fa\u4e8eTCP\u7684\u65b0\u578b\u7f51\u7edc\u534f\u8bae\uff0c\u5b83\u662f\u4e00\u79cd\u5168\u53cc\u5de5\u7684\u534f\u8bae\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u53cc\u5411\u901a\u4fe1\u3002WebSocket\u53ef\u4ee5\u652f\u6301\u5b9e\u65f6\u901a\u4fe1\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u957f\u8fde\u63a5\uff0c\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u53ef\u4ee5\u652f\u6301\u5927\u91cf\u6570\u636e\u7684\u4f20\u8f93\u3002<\/p>\n
\u4ece\u4e0a\u8ff0\u4ecb\u7ecd\u53ef\u4ee5\u770b\u51fa\uff0c\u9664\u4e86MQTT\uff0c\u8fd8\u6709\u5176\u4ed6\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u6280\u672f\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/strong>HTTP\u662f\u4e00\u79cd\u5b89\u5168\u3001\u53ef\u9760\u3001\u6613\u4e8e\u4f7f\u7528\u7684\u534f\u8bae\uff0c\u9002\u7528\u4e8e\u6b63\u5e38\u7684\u7f51\u7edc\u5e94\u7528\uff0c\u4f46\u4e0d\u9002\u5408\u5b9e\u65f6\u5e94\u7528\u3002WebSocket\u662f\u4e00\u79cd\u5b9e\u65f6\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u652f\u6301\u5b9e\u65f6\u901a\u4fe1\u3001\u957f\u8fde\u63a5\u3001\u591a\u79cd\u534f\u8bae\u3001\u5927\u91cf\u6570\u636e\u4f20\u8f93\uff0c\u4f46\u5b89\u5168\u6027\u8f83\u4f4e\uff0c\u7f3a\u4e4f\u6807\u51c6\uff0c\u517c\u5bb9\u6027\u5dee\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u6280\u672f\u65f6\uff0c\u5e94\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u9009\u62e9\u6700\u9002\u5408\u81ea\u5df1\u7684\u6280\u672f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u968f\u7740\u4e92\u8054\u7f51\u6280\u672f\u7684\u53d1\u5c55\uff0c\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u5df2\u6210\u4e3a\u4eba\u4eec\u65e5\u5e38\u751f\u6d3b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u7ebf\u4e0a\u7ebf\u4e0b\u901a\u4fe1\u7684\u6280\u672f\u6709\u5f88\u591a\uff0c\u5176\u4e2dMQTT\uff08Message Queuing Telemetry Tra<\/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":[45],"class_list":["post-29593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-txxt"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/29593","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=29593"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/29593\/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=29593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=29593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=29593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}