当前位置:网站首页>Nodered系列—写入tDengine超级表,自动创建子表
Nodered系列—写入tDengine超级表,自动创建子表
2022-08-11 05:20:00 【鲸鱼姐】
1. TDengine超级表创建如下
使用TD-workbench管理tDengine数据库数据_鲸鱼姐的博客-CSDN博客
2. nodered配置方法和文章一致
Nodered系列—使用mqtt写入国产数据库tDengine_鲸鱼姐的博客-CSDN博客
3. 修改function语句如下
var plc1=msg.payload.plc1;
var plc2=msg.payload.plc2;
var plc3=msg.payload.plc3;
var plc4=msg.payload.plc4;
var plc_id=msg.payload.plc_id;
msg.payload ="insert into test.plc using test.meters tags('timenow','plc1','plc2') values (now," + plc1 + "," + plc2 + ");"
return msg;
4. 运行结果TDengine超级表内容如下
子表自动创建,内容如下
边栏推荐
猜你喜欢
随机推荐
【C语言从初阶到进阶】第一篇 初始C语言(一)
【记录】没用知识点 - 智力题
PHP提高并发能力有哪些方案
error: The following untracked working tree files would be overwritten by merge: .hbuilderx/launch
ENS在Web3.0浪潮下的有什么价值?
代币标准--ERC1155协议源码解析
C language learning record--variable basic type and memory size
gradle-wrapper.jar description
sand和mana两大元宇宙游戏,哪个更有潜力?
Markdown学习
CSDN 社区内容创作规范
配置@路径简化路径处理
代币标准--ERC721协议源码解析
npm install 时报 npm ERR Cannot read properties of null (reading ‘pickAlgorithm‘)
第13章类继承
常用的转义字符
Install different versions of MinGW (g++/gcc) and the configuration of the corresponding clion editor under Win
C - file operations fseek () function, ftell, rewind, rounding
第10章 对象和类 -1
let 块级作用域