Hi
How do I add a topic to each of these two functions:
var msg1 = { payload:msg.payload};
var msg2 = { payload:msg.humidity};
return [msg1, msg2];
At this moment it returns two payloads
payload: 15
_msgid: "9c1a815f.88451"
payload: 60
_msgid: "9c1a815f.88451"
And I want it to return
payload: 15
_msgid: "9c1a815f.88451"
topic: "Temp"
payload: 60
_msgid: "9c1a815f.88451"
topic: "Humid"
Thanks for any help
Mathias