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