{"id":42290,"date":"2023-09-27T16:34:18","date_gmt":"2023-09-27T08:34:18","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42290"},"modified":"2023-09-27T16:34:18","modified_gmt":"2023-09-27T08:34:18","slug":"nzcsmxy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42290.html","title":{"rendered":"Node-RED\u652f\u6301\u4ec0\u4e48\u534f\u8bae\uff1f"},"content":{"rendered":"

  Node-RED\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7528\u4e8e\u6784\u5efa\u53ef\u89c6\u5316\u6d41\u7a0b\u7684\u5e73\u53f0\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u66f4\u8f7b\u677e\u5730\u6784\u5efa\u548c\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u3002Node-RED\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u4e4b\u95f4\u7684\u96c6\u6210\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecdNode-RED\u652f\u6301\u7684\u534f\u8bae\uff0c\u4ee5\u53ca\u5b83\u4eec\u5982\u4f55\u6709\u52a9\u4e8e\u7528\u6237\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u4e4b\u95f4\u7684\u96c6\u6210\u3002<\/p>\n

HTTP\/HTTPS\u534f\u8bae<\/h2>\n

  HTTP\/HTTPS\u534f\u8bae\u662fNode-RED\u652f\u6301\u7684\u6700\u5e38\u7528\u7684\u534f\u8bae\u4e4b\u4e00\uff0c\u5b83\u4eec\u662f\u4e00\u79cd\u57fa\u4e8e\u6587\u672c\u7684\u534f\u8bae\uff0c\u7528\u4e8e\u5728web\u6d4f\u89c8\u5668\u548cweb\u670d\u52a1\u5668\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002Node-RED\u652f\u6301\u4f7f\u7528HTTP\/HTTPS\u534f\u8bae\u6765\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u5e76\u53ef\u4ee5\u4ece\u7f51\u7edc\u4e0a\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u4ee5\u53ca\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u548c\u5199\u5165\u6570\u636e\u3002<\/p>\n

  HTTP\/HTTPS\u7684\u4f18\u52bf<\/h3>\n

  HTTP\/HTTPS\u534f\u8bae\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u4eec\u53ef\u4ee5\u8de8\u8d8a\u4e0d\u540c\u7684\u7f51\u7edc\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\u6765\u521b\u5efa\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5e94\u7528\u7a0b\u5e8f\u3002\u6b64\u5916\uff0cHTTP\/HTTPS\u534f\u8bae\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u66f4\u65b0\u548c\u7ef4\u62a4\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u6570\u636e\u683c\u5f0f\uff0c\u5982JSON\uff0cXML\u548cCSV\u3002<\/p>\n

  HTTP\/HTTPS\u7684\u7f3a\u70b9<\/h3>\n

  HTTP\/HTTPS\u534f\u8bae\u7684\u7f3a\u70b9\u5728\u4e8e\u5b83\u4eec\u4e0d\u80fd\u652f\u6301\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\uff0c\u56e0\u4e3a\u5b83\u4eec\u662f\u57fa\u4e8e\u6587\u672c\u7684\u534f\u8bae\uff0c\u56e0\u6b64\u5b83\u4eec\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6570\u636e\u4f20\u8f93\u901f\u7387\u53d8\u6162\u3002\u6b64\u5916\uff0cHTTP\/HTTPS\u534f\u8bae\u53ef\u80fd\u4f1a\u53d7\u5230\u5b89\u5168\u6027\u65b9\u9762\u7684\u653b\u51fb\uff0c\u56e0\u4e3a\u5b83\u4eec\u4e0d\u80fd\u63d0\u4f9b\u52a0\u5bc6\u529f\u80fd\u3002<\/p>\n

MQTT\u534f\u8bae<\/h2>\n

  MQTT\u534f\u8bae\u662f\u4e00\u79cd\u53ef\u9760\u7684\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5728\u7f51\u7edc\u4e0a\u8fdb\u884c\u53ef\u9760\u7684\u6d88\u606f\u4f20\u8f93\u3002MQTT\u534f\u8bae\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u7f51\u7edc\u4e0a\u53d1\u9001\u548c\u63a5\u6536\u5b9e\u65f6\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u7f51\u7edc\u8bbe\u5907\u4e4b\u95f4\u7684\u8fde\u63a5\u3002<\/p>\n

  MQTT\u7684\u4f18\u52bf<\/h3>\n

  MQTT\u534f\u8bae\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u652f\u6301\u5b9e\u65f6\u6d88\u606f\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u4f4e\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e0b\u8fd0\u884c\u3002\u6b64\u5916\uff0cMQTT\u534f\u8bae\u53ef\u4ee5\u63d0\u4f9b\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u901a\u8fc7\u52a0\u5bc6\u6765\u4fdd\u62a4\u6570\u636e\u5b89\u5168\u3002<\/p>\n

  MQTT\u7684\u7f3a\u70b9<\/h3>\n

  MQTT\u534f\u8bae\u7684\u7f3a\u70b9\u5728\u4e8e\u5b83\u4ec5\u652f\u6301\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\uff0c\u4e0d\u80fd\u652f\u6301\u5176\u4ed6\u7c7b\u578b\u7684\u6d88\u606f\u4f20\u8f93\u3002\u6b64\u5916\uff0cMQTT\u534f\u8bae\u53ef\u80fd\u4f1a\u53d7\u5230\u5b89\u5168\u6027\u65b9\u9762\u7684\u653b\u51fb\uff0c\u5982\u679c\u7528\u6237\u6ca1\u6709\u6b63\u786e\u8bbe\u7f6e\u52a0\u5bc6\uff0c\u90a3\u4e48MQTT\u534f\u8bae\u53ef\u80fd\u4f1a\u53d7\u5230\u653b\u51fb\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Node-RED\u652f\u6301\u7684\u534f\u8bae\uff0c\u4ee5\u53ca\u5b83\u4eec\u5982\u4f55\u6709\u52a9\u4e8e\u7528\u6237\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u4e4b\u95f4\u7684\u96c6\u6210\u3002<\/strong>Node-RED\u652f\u6301HTTP\/HTTPS\u548cMQTT\u534f\u8bae\uff0c\u5b83\u4eec\u90fd\u6709\u5404\u81ea\u7684\u4f18\u52bf\u548c\u7f3a\u70b9\u3002HTTP\/HTTPS\u534f\u8bae\u53ef\u4ee5\u8de8\u8d8a\u4e0d\u540c\u7684\u7f51\u7edc\uff0c\u4f46\u662f\u5b83\u4eec\u4e0d\u80fd\u652f\u6301\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\uff1b\u800cMQTT\u534f\u8bae\u53ef\u4ee5\u652f\u6301\u5b9e\u65f6\u6d88\u606f\u4f20\u8f93\uff0c\u4f46\u662f\u5b83\u4ec5\u652f\u6301\u53d1\u5e03\/\u8ba2\u9605\u6d88\u606f\u4f20\u8f93\u3002\u56e0\u6b64\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u534f\u8bae\u6765\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u4e4b\u95f4\u7684\u96c6\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Node-RED\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7528\u4e8e\u6784\u5efa\u53ef\u89c6\u5316\u6d41\u7a0b\u7684\u5e73\u53f0\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u66f4\u8f7b\u677e\u5730\u6784\u5efa\u548c\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u3002Node-RED\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u5b9e\u73b0\u8bbe\u5907\u548c\u5e94\u7528\u4e4b\u95f4\u7684\u96c6<\/p>\n","protected":false},"author":1,"featured_media":4132,"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":[137],"class_list":["post-42290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-txxy"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42290","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=42290"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42290\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=42290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}