admin管理员组文章数量:1390803
Set decoder in Chirpstack's sends among other keys, key: Object and value like {"temp":158,"humidity":"0.00"} how to have key temp and key humidity with their values instead of having them in one single key named object?
tried using a rule chain and a script node placed after input node. the code for the script sofar:
var data = msg;
var keys=Object.keys(data);
var result={};
keys.forEach(function(key){
result[key]=data[key];
});
return{msg: result};
本文标签: How to quotsplitquot the Object sent from chirpstack to Thingsboard in ThingsboardStack Overflow
版权声明:本文标题:How to "split" the Object sent from chirpstack to Thingsboard in Thingsboard? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744718269a2621539.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论