{"id":73806,"date":"2024-01-12T18:13:19","date_gmt":"2024-01-12T10:13:19","guid":{"rendered":"\/\/www.viralrail.com\/?p=73806"},"modified":"2024-01-12T18:13:19","modified_gmt":"2024-01-12T10:13:19","slug":"bjmyhxydytjwhmxygshwlwy","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/73806.html","title":{"rendered":"\u6bd4\u8f83MQTT\u4e0eHTTP\u534f\u8bae\u7684\u5f02\u540c\u53ca\u4e3a\u4f55MQTT\u534f\u8bae\u66f4\u9002\u5408\u7269\u8054\u7f51\u5e94\u7528"},"content":{"rendered":"

  \u7269\u8054\u7f51\uff08IoT<\/a>\uff09\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4f7f\u5f97\u8bbe\u5907\u95f4\u7684\u4fe1\u606f\u4ea4\u6362\u53d8\u5f97\u66f4\u52a0\u4fbf\u6377\u3002\u5728\u7269\u8054\u7f51\u4e2d\uff0c\u901a\u4fe1\u534f\u8bae\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\uff0c\u800cMQTT\u548cHTTP\u534f\u8bae\u662f\u4e24\u79cd\u5e38\u7528\u7684\u901a\u4fe1\u534f\u8bae\u3002\u672c\u6587\u5c06\u5bf9\u5b83\u4eec\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76\u5206\u6790\u4e3a\u4f55MQTT\u534f\u8bae\u66f4\u9002\u5408\u7269\u8054\u7f51\u5e94\u7528\u3002<\/p>\n

MQTT\u4e0eHTTP\u534f\u8bae\u7684\u5f02\u540c<\/h2>\n

  \u534f\u8bae\u7ed3\u6784<\/h3>\n

  MQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u673a\u5236\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cHTTP\uff08HyperText Transfer Protocol\uff09\u662f\u4e00\u79cd\u5e94\u7528\u5c42<\/a>\u534f\u8bae\uff0c\u7528\u4e8e\u4f20\u8f93\u8bf8\u5982HTML\u7b49\u8d85\u6587\u672c\u6587\u6863\u3002<\/p>\n

  \u6d88\u606f\u4f20\u8f93\u65b9\u5f0f<\/h3>\n

  MQTT\u91c7\u7528\u63a8\u9001\u6a21\u5f0f\uff0c\u53d1\u5e03\u8005\u53d1\u5e03\u6d88\u606f\u540e\uff0c\u6240\u6709\u8ba2\u9605\u8be5\u4e3b\u9898\u7684\u5ba2\u6237\u7aef\u90fd\u80fd\u63a5\u6536\u5230\u6d88\u606f\u3002HTTP\u5219\u662f\u8bf7\u6c42\/\u54cd\u5e94\u6a21\u5f0f\uff0c\u5ba2\u6237\u7aef\u5fc5\u987b\u53d1\u9001\u8bf7\u6c42\u624d\u80fd\u83b7\u53d6\u670d\u52a1\u5668\u7684\u54cd\u5e94\u3002<\/p>\n

\u4e3a\u4f55MQTT\u534f\u8bae\u66f4\u9002\u5408\u7269\u8054\u7f51\u5e94\u7528<\/h2>\n

  \u4f4e\u80fd\u8017<\/h3>\n

  M2M\u901a\u4fe1\u5728\u7269\u8054\u7f51\u4e2d\u5f88\u5e38\u89c1\uff0cMQTT\u534f\u8bae\u76f8\u6bd4HTTP\u534f\u8bae\u5177\u6709\u66f4\u5c11\u7684\u62a5\u6587\u4f20\u8f93\u548c\u8fde\u63a5\u7ef4\u6301\u5f00\u9500\uff0c\u56e0\u6b64\u80fd\u591f\u51cf\u5c11\u7ec8\u7aef\u8bbe\u5907\u7684\u80fd\u8017\u3002<\/p>\n

  \u8fde\u63a5\u7a33\u5b9a\u6027<\/h3>\n

  \u5728\u7269\u8054\u7f51\u573a\u666f\u4e2d\uff0c\u8bbe\u5907\u53ef\u80fd\u5904\u4e8e\u4e0d\u7a33\u5b9a\u7684\u7f51\u7edc\u73af\u5883\u4e2d\uff0cMQTT\u534f\u8bae\u5177\u6709\u66f4\u597d\u7684\u9c81\u68d2\u6027<\/a>\uff0c\u4f7f\u5f97\u5b83\u66f4\u9002\u5408\u5728\u4e0d\u7a33\u5b9a\u7f51\u7edc\u73af\u5883\u4e0b\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n

  \u6d88\u606f\u5206\u53d1\u6548\u7387<\/h3>\n

  \u7531\u4e8eMQTT\u91c7\u7528\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u96c6\u4e2d\u5f0f\u7684\u6d88\u606f\u5206\u53d1\uff0c\u80fd\u591f\u66f4\u52a0\u9ad8\u6548\u5730\u5c06\u6570\u636e\u4f20\u8f93\u5230\u591a\u4e2a\u8ba2\u9605\u8005\u90a3\u91cc\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u7ed3\u8bba<\/h3>\n

  \u7efc\u5408\u6765\u770b\uff0c\u867d\u7136HTTP\u534f\u8bae\u5728\u4f20\u8f93\u5927\u578b\u6570\u636e\u548c\u8bf7\u6c42-\u54cd\u5e94\u573a\u666f\u4e0b\u8868\u73b0\u4f18\u826f\uff0c\u4f46\u5728\u7269\u8054\u7f51\u5e94\u7528\u4e2d\uff0c\u7279\u522b\u662f\u5bf9\u8bbe\u5907\u8d44\u6e90\u8981\u6c42\u82db\u523b\u7684\u573a\u666f\u4e0b\uff0cMQTT\u534f\u8bae\u66f4\u9002\u5408\u3002\u5b83\u7684\u4f4e\u80fd\u8017\u3001\u8fde\u63a5\u7a33\u5b9a\u6027\u548c\u6d88\u606f\u5206\u53d1\u6548\u7387\u4f7f\u5f97\u5b83\u6210\u4e3a\u4e86\u7269\u8054\u7f51\u4e2d\u901a\u4fe1\u7684\u9996\u9009\u3002<\/p>\n

  \u5c55\u671b<\/h3>\n

  \u968f\u7740\u7269\u8054\u7f51\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0cMQTT\u534f\u8bae\u4e5f\u5c06\u8fdb\u4e00\u6b65\u5b8c\u5584\uff0c\u63d0\u4f9b\u66f4\u591a\u5b9a\u5236\u5316\u7684\u529f\u80fd\uff0c\u4ece\u800c\u66f4\u597d\u5730\u6ee1\u8db3\u5404\u79cd\u7269\u8054\u7f51\u5e94\u7528\u7684\u9700\u6c42\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

\u7269\u8054\u7f51\uff08IoT\uff09\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4f7f\u5f97\u8bbe\u5907\u95f4\u7684\u4fe1\u606f\u4ea4\u6362\u53d8\u5f97\u66f4\u52a0\u4fbf\u6377\u3002\u5728\u7269\u8054\u7f51\u4e2d\uff0c\u901a\u4fe1\u534f\u8bae\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\uff0c\u800cMQTT\u548cHTTP\u534f\u8bae\u662f\u4e24\u79cd\u5e38\u7528\u7684\u901a\u4fe1\u534f\u8bae\u3002\u672c\u6587\u5c06\u5bf9\u5b83\u4eec\u8fdb\u884c\u6bd4\u8f83\uff0c\u5e76<\/p>\n","protected":false},"author":1,"featured_media":64183,"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":[40],"class_list":["post-73806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-wlw"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/73806"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=73806"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/73806\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=73806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=73806"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=73806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}