完整效果图

RESTful 连接参数具体参考:POSTMAN HTTP POST 实现 RESTful Connector 连接TDengine数据库
本文参考了Node-red官网的教程 :
Set a request header
Problem
You need to send an HTTP request with specific request headers.
Solution
Set the msg.headers field to the field value pairs of the request headers you would like to include in the message sent to the HTTP request node.
Example

In this example we set the X-Auth-User and X-Auth-Key request headers to call public HttpBin post test service.
The code in the Function node below adds these additional message fields by adding a msg.headers object, and setting the header field/values in this object as shown.
msg.payload = "data to post";
msg.headers = {};
msg.headers['X-Auth-User'] = 'mike';
msg.headers['X-Auth-Key'] = 'fred-key';
return msg;
These can be seen by expanding the

本文介绍如何使用Node-RED通过RESTful API连接TDengine数据库,并展示具体的配置步骤与代码示例。
最低0.47元/天 解锁文章
93

被折叠的 条评论
为什么被折叠?



