{"id":21161,"date":"2023-09-24T23:19:10","date_gmt":"2023-09-24T15:19:10","guid":{"rendered":"\/\/www.dealsbon.com\/?p=21161"},"modified":"2023-09-24T23:19:10","modified_gmt":"2023-09-24T15:19:10","slug":"mhhxyqb","status":"publish","type":"post","link":"\/\/www.dealsbon.com\/blog\/21161.html","title":{"rendered":"MQTT\u548cHTTP\u534f\u8bae\u533a\u522b"},"content":{"rendered":"
MQTT\u548cHTTP\u534f\u8bae\u662f\u4e0d\u540c\u7684\u7f51\u7edc\u534f\u8bae\uff0c\u5b83\u4eec\u5728\u5b9e\u73b0\u67d0\u4e9b\u529f\u80fd\u65f6\u6709\u7740\u5f88\u5927\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdMQTT\u548cHTTP\u534f\u8bae\u7684\u4e0d\u540c\u4e4b\u5904\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n
MQTT\uff08Message Queuing Telemetry Transport\uff09\u534f\u8bae\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u7531IBM\u5f00\u53d1\uff0c\u5e76\u4e8e1999\u5e74\u53d1\u5e03\u3002MQTT\u534f\u8bae\u5b9e\u73b0\u4e86\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\uff0c\u5e76\u5177\u6709\u4f4e\u5e26\u5bbd\u3001\u4f4e\u5ef6\u8fdf\u3001\u4f4e\u80fd\u8017\u548c\u8f7b\u91cf\u7ea7\u7684\u7279\u70b9\u3002MQTT\u534f\u8bae\u901a\u5e38\u7528\u4e8eIoT\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u6536\u96c6\u3001\u5b58\u50a8\u548c\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\u3002<\/p>\n
HTTP\uff08HyperText Transfer Protocol\uff09\u534f\u8bae\u662f\u4e00\u79cd\u7528\u4e8e\u8d85\u6587\u672c\u4f20\u8f93\u7684\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u7531Tim Berners-Lee\u4e8e1991\u5e74\u53d1\u660e\uff0c\u5e76\u4e8e1993\u5e74\u6b63\u5f0f\u53d1\u5e03\u3002\u5b83\u662f\u4e00\u79cd\u57fa\u4e8eTCP\/IP\u7684\u534f\u8bae\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8d85\u6587\u672c\u6587\u4ef6\u7684\u4f20\u8f93\uff0c\u662f\u4e92\u8054\u7f51\u4e0a\u5e94\u7528\u6700\u4e3a\u5e7f\u6cdb\u7684\u534f\u8bae\u4e4b\u4e00\u3002HTTP\u534f\u8bae\u662f\u4e00\u79cd\u65e0\u72b6\u6001\u534f\u8bae\uff0c\u5b83\u4e0d\u4f1a\u4fdd\u5b58\u5ba2\u6237\u7aef\u7684\u4efb\u4f55\u4fe1\u606f\uff0c\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u7684\u3002<\/p>\n
MQTT\u548cHTTP\u534f\u8bae\u6709\u7740\u660e\u663e\u7684\u4e0d\u540c\uff0c\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n
MQTT\u534f\u8bae\u6bd4HTTP\u534f\u8bae\u5177\u6709\u66f4\u9ad8\u7684\u4f20\u8f93\u6548\u7387\uff0cMQTT\u534f\u8bae\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u7f51\u7edc\u4f20\u8f93\u6548\u7387\uff0c\u800cHTTP\u534f\u8bae\u5219\u6bd4\u8f83\u4f4e\u6548\u3002<\/p>\n
MQTT\u534f\u8bae\u7684\u62a5\u6587\u683c\u5f0f\u7b80\u5355\uff0c\u53ea\u67092.5KB\uff0c\u53ef\u4ee5\u8282\u7701\u5e26\u5bbd\u8d44\u6e90\uff0c\u800cHTTP\u534f\u8bae\u7684\u62a5\u6587\u683c\u5f0f\u8f83\u4e3a\u590d\u6742\uff0c\u62a5\u6587\u4f53\u79ef\u8f83\u5927\uff0c\u5360\u7528\u5e26\u5bbd\u8d44\u6e90\u4e5f\u8f83\u591a\u3002<\/p>\n
MQTT\u534f\u8bae\u5177\u6709\u6d88\u606f\u53ef\u9760\u6027\u4f20\u8f93\u7684\u7279\u6027\uff0c\u53ef\u4ee5\u786e\u4fdd\u6d88\u606f\u7684\u53ef\u9760\u4f20\u8f93\uff0c\u800cHTTP\u534f\u8bae\u5219\u4e0d\u5177\u5907\u53ef\u9760\u6027\u4f20\u8f93\u7684\u7279\u6027\u3002<\/p>\n
MQTT\u534f\u8bae\u548cHTTP\u534f\u8bae\u90fd\u652f\u6301SSL\/TLS\u52a0\u5bc6\uff0c\u53ef\u4ee5\u6709\u6548\u4fdd\u62a4\u6570\u636e\u7684\u5b89\u5168\u6027\u3002<\/p>\n
MQTT\u534f\u8bae\u901a\u5e38\u7528\u4e8eIoT\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u6536\u96c6\u3001\u5b58\u50a8\u548c\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\uff0c\u800cHTTP\u534f\u8bae\u5219\u7528\u4e8e\u8d85\u6587\u672c\u6587\u4ef6\u7684\u4f20\u8f93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7f51\u9875\u7684\u8bbf\u95ee\u548c\u6d4f\u89c8\u3002<\/p>\n
\u603b\u7684\u6765\u8bf4\uff0cMQTT\u548cHTTP\u534f\u8bae\u90fd\u662f\u5e38\u7528\u7684\u7f51\u7edc\u534f\u8bae\uff0c\u5b83\u4eec\u5728\u5b9e\u73b0\u67d0\u4e9b\u529f\u80fd\u65f6\u6709\u7740\u5f88\u5927\u7684\u533a\u522b\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u8eab\u7684\u9700\u6c42\u6765\u9009\u62e9\u5408\u9002\u7684\u534f\u8bae\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":" MQTT\u548cHTTP\u534f\u8bae\u662f\u4e0d\u540c\u7684\u7f51\u7edc\u534f\u8bae\uff0c\u5b83\u4eec\u5728\u5b9e\u73b0\u67d0\u4e9b\u529f\u80fd\u65f6\u6709\u7740\u5f88\u5927\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdMQTT\u548cHTTP\u534f\u8bae\u7684\u4e0d\u540c\u4e4b\u5904\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u7684\u5e94\u7528\u573a\u666f\u3002MQTT<\/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-21161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-m"],"_links":{"self":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/21161"}],"collection":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/comments?post=21161"}],"version-history":[{"count":0,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/21161\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media?parent=21161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/categories?post=21161"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/tags?post=21161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}