{"id":120917,"date":"2018-10-05T08:06:17","date_gmt":"2018-10-05T00:06:17","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=120917"},"modified":"2018-09-26T09:13:49","modified_gmt":"2018-09-26T01:13:49","slug":"mqtt-knowledge","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mqtt-knowledge.html","title":{"rendered":"\u521d\u8bc6MQTT"},"content":{"rendered":"

\u7269\u8054\u7f51 (IoT) \u8bbe\u5907\u5fc5\u987b\u8fde\u63a5\u4e92\u8054\u7f51\u3002\u901a\u8fc7\u8fde\u63a5\u5230\u4e92\u8054\u7f51\uff0c\u8bbe\u5907\u5c31\u80fd\u76f8\u4e92\u534f\u4f5c\uff0c\u4ee5\u53ca\u4e0e\u540e\u7aef\u670d\u52a1\u534f\u540c\u5de5\u4f5c\u3002\u4e92\u8054\u7f51\u7684\u57fa\u7840\u7f51\u7edc\u534f\u8bae\u662f TCP\/IP\u3002MQTT\uff08\u6d88\u606f\u961f\u5217\u9065\u6d4b\u4f20\u8f93\uff09 \u662f\u57fa\u4e8e TCP\/IP \u534f\u8bae\u6808\u800c\u6784\u5efa\u7684\uff0c\u5df2\u6210\u4e3a IoT \u901a\u4fe1\u7684\u6807\u51c6\u3002<\/p>\n

MQTT \u6700\u521d\u7531 IBM \u4e8e\u4e0a\u4e16\u7eaa 90 \u5e74\u4ee3\u665a\u671f\u53d1\u660e\u548c\u5f00\u53d1\u3002\u5b83\u6700\u521d\u7684\u7528\u9014\u662f\u5c06\u77f3\u6cb9\u7ba1\u9053\u4e0a\u7684\u4f20\u611f\u5668\u4e0e\u536b\u661f\u76f8\u94fe\u63a5\u3002\u987e\u540d\u601d\u4e49\uff0c\u5b83\u662f\u4e00\u79cd\u652f\u6301\u5728\u5404\u65b9\u4e4b\u95f4\u5f02\u6b65\u901a\u4fe1\u7684\u6d88\u606f\u534f\u8bae\u3002\u5f02\u6b65\u6d88\u606f\u534f\u8bae\u5728\u7a7a\u95f4\u548c\u65f6\u95f4\u4e0a\u5c06\u6d88\u606f\u53d1\u9001\u8005\u4e0e\u63a5\u6536\u8005\u5206\u79bb\uff0c\u56e0\u6b64\u53ef\u4ee5\u5728\u4e0d\u53ef\u9760\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u8fdb\u884c\u6269\u5c55\u3002\u867d\u7136\u53eb\u505a\u6d88\u606f\u961f\u5217\u9065\u6d4b\u4f20\u8f93\uff0c\u4f46\u5b83\u4e0e\u6d88\u606f\u961f\u5217\u6beb\u65e0\u5173\u7cfb\uff0c\u800c\u662f\u4f7f\u7528\u4e86\u4e00\u4e2a\u53d1\u5e03\u548c\u8ba2\u9605\u7684\u6a21\u578b\u3002\u5728 2014 \u5e74\u672b\uff0c\u5b83\u6b63\u5f0f\u6210\u4e3a\u4e86\u4e00\u79cd OASIS \u5f00\u653e\u6807\u51c6\uff0c\u800c\u4e14\u5728\u4e00\u4e9b\u6d41\u884c\u7684\u7f16\u7a0b\u8bed\u8a00\u4e2d\u53d7\u5230\u652f\u6301\uff08\u901a\u8fc7\u4f7f\u7528\u591a\u79cd\u5f00\u6e90\u5b9e\u73b0\uff09\u3002<\/p>\n

\"\"<\/p>\n

MQTT \u534f\u8bae\u5728\u7f51\u7edc\u4e2d\u5b9a\u4e49\u4e86\u4e24\u79cd\u5b9e\u4f53\u7c7b\u578b\uff1a\u4e00\u4e2a\u6d88\u606f\u4ee3\u7406\u548c\u4e00\u4e9b\u5ba2\u6237\u7aef\u3002\u4ee3\u7406\u662f\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u5b83\u4ece\u5ba2\u6237\u7aef\u63a5\u6536\u6240\u6709\u6d88\u606f\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u6d88\u606f\u8def\u7531\u5230\u76f8\u5173\u7684\u76ee\u6807\u5ba2\u6237\u7aef\u3002\u5ba2\u6237\u7aef\u662f\u80fd\u591f\u4e0e\u4ee3\u7406\u4ea4\u4e92\u6765\u53d1\u9001\u548c\u63a5\u6536\u6d88\u606f\u7684\u4efb\u4f55\u4e8b\u7269\u3002\u5ba2\u6237\u7aef\u53ef\u4ee5\u662f\u73b0\u573a\u7684 IoT \u4f20\u611f\u5668\uff0c\u6216\u8005\u662f\u6570\u636e\u4e2d\u5fc3\u5185\u5904\u7406 IoT \u6570\u636e\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

    \n
  1. \u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u4ee3\u7406\u3002\u5b83\u53ef\u4ee5\u8ba2\u9605\u4ee3\u7406\u4e2d\u7684\u4efb\u4f55\u6d88\u606f \u201c\u4e3b\u9898\u201d\u3002\u6b64\u8fde\u63a5\u53ef\u4ee5\u662f\u7b80\u5355\u7684 TCP\/IP \u8fde\u63a5\uff0c\u4e5f\u53ef\u4ee5\u662f\u7528\u4e8e\u53d1\u9001\u654f\u611f\u6d88\u606f\u7684\u52a0\u5bc6 TLS \u8fde\u63a5\u3002<\/li>\n
  2. \u5ba2\u6237\u7aef\u901a\u8fc7\u5c06\u6d88\u606f\u548c\u4e3b\u9898\u53d1\u9001\u7ed9\u4ee3\u7406\uff0c\u53d1\u5e03\u67d0\u4e2a\u4e3b\u9898\u8303\u56f4\u5185\u7684\u6d88\u606f\u3002<\/li>\n
  3. \u4ee3\u7406\u7136\u540e\u5c06\u6d88\u606f\u8f6c\u53d1\u7ed9\u6240\u6709\u8ba2\u9605\u8be5\u4e3b\u9898\u7684\u5ba2\u6237\u7aef\u3002<\/li>\n<\/ol>\n

    \u56e0\u4e3a MQTT \u6d88\u606f\u662f\u6309\u4e3b\u9898\u8fdb\u884c\u7ec4\u7ec7\u7684\uff0c\u6240\u4ee5\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4eba\u5458\u80fd\u7075\u6d3b\u5730\u6307\u5b9a\u67d0\u4e9b\u5ba2\u6237\u7aef\u53ea\u80fd\u4e0e\u67d0\u4e9b\u6d88\u606f\u4ea4\u4e92\u3002\u4f8b\u5982\uff0c\u4f20\u611f\u5668\u5c06\u5728 \u201csensor_data\u201d \u4e3b\u9898\u8303\u56f4\u5185\u53d1\u5e03\u8bfb\u6570\uff0c\u5e76\u8ba2\u9605 \u201cconfig_change\u201d \u4e3b\u9898\u3002\u5c06\u4f20\u611f\u5668\u6570\u636e\u4fdd\u5b58\u5230\u540e\u7aef\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u5904\u7406\u5e94\u7528\u7a0b\u5e8f\u4f1a\u8ba2\u9605 \u201csensor_data\u201d \u4e3b\u9898\u3002\u7ba1\u7406\u63a7\u5236\u53f0\u5e94\u7528\u7a0b\u5e8f\u80fd\u63a5\u6536\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u547d\u4ee4\u6765\u8c03\u6574\u4f20\u611f\u5668\u7684\u914d\u7f6e\uff0c\u6bd4\u5982\u7075\u654f\u5ea6\u548c\u91c7\u6837\u9891\u7387\uff0c\u5e76\u5c06\u8fd9\u4e9b\u66f4\u6539\u53d1\u5e03\u5230 \u201cconfig_change\u201d \u4e3b\u9898\u3002<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.ibm.com\/developerworks\/cn\/iot\/iot-mqtt-why-good-for-iot\/index.html<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/mqtt-knowledge.html<\/a>\u7f16\u8f91\uff1a\u5c39\u6167\u6167\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u7269\u8054\u7f51 (IoT) \u8bbe\u5907\u5fc5\u987b\u8fde\u63a5\u4e92\u8054\u7f51\u3002\u901a\u8fc7\u8fde\u63a5\u5230\u4e92\u8054\u7f51\uff0c\u8bbe\u5907\u5c31\u80fd\u76f8\u4e92\u534f\u4f5c\uff0c\u4ee5\u53ca\u4e0e\u540e\u7aef\u670d\u52a1\u534f\u540c\u5de5\u4f5c\u3002\u4e92\u8054\u7f51\u7684\u57fa […]<\/p>\n","protected":false},"author":63,"featured_media":121177,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-120917","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/120917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=120917"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/120917\/revisions"}],"predecessor-version":[{"id":121705,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/120917\/revisions\/121705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/121177"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=120917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=120917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=120917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}