最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to "split" the Object sent from chirpstack to Thingsboard in Thingsboard? - Stack Overflow

programmeradmin1浏览0评论

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};
发布评论

评论列表(0)

  1. 暂无评论