Hello,
I am working for a company that uses node-red to connect to iobroker and modbus to access hardware booleans and registers. Here's what my flow looks like:
timestamp/Iobroker GET/Function/CSV/SaveFile
................/Iobroker IN/Function/CSV/SaveFile (Iobroker In connects to the same function as Iobroker get)
This is the code for the function:
var tempPay = {"topic":msg.topic, "status":msg.payload};
msg.payload = tempPay;
return msg;
Here's the problem: The topic I am accessing seems to be coming from timestamp when I use timestamp. Is there a way to get the topic of the Iobroker Get node when it runs and get the topic of the Iobroker In when it runs? I've used the debug node to see the complete msg, but I don't see the topic of the Iobroker Get or Iobroker IN. Any Ideas?
Thanks,
CB