Hi,
i do have a function node where i build a JSON message based on the set points.
However as you observer i do have a parent node "01" this refers to the data packet which i receive from the
global.get("currentDataPacket")
which will increment and give a current data packet number.
Is there a way how i can send
global.get("currentDataPacket")
value instead
"01"
?
msg.payload =
{
"state": {
"response": {
"home": {
"01": {
"temperature": global.get("currentTemp"),
"humidity": global.get("currentHumidty")
}
}
}
}
}