FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
05-29-2024 05:34 AM
Hi, In Node Red Each individual CtrlX subscribe node gives an output value in terms of "msg.payload" variable. If i were to add another CtrlX subscribe node, it will also output value in terms of " msg.payload" . I tried to assign different variable names using "change node" for these but this error shows up. Would like to know how can we solve this issue OR what are the other alternative solution for this?
Solved! Go to Solution.
05-29-2024 10:05 AM
The change node works as expected. The debug node by default just gives out "msg.payload". But you can change this in the settings for the debug node. Then you are able to see the hohle msg object (also "msg.a"). See my screenshots:
Best regards,
Nick
05-29-2024 10:51 AM
Hi @nickH , thanks for the clarification. Just started exploring node-red. Cheers.
05-29-2024 02:57 PM
Another option would be to output to the debug window from a function node, rather than using the debug node.
If you've assigned the value you'd like to output as (msg.a), you can pass this as input to a function node that contains the following code.
node.warn(msg.a);
05-30-2024 02:45 AM
Hi @Sgilk , thanks for providing an alternative solution, this helps alot!