Node Red reassign variable from CtrlX Subscribe Node

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? 

Best reply by nickH

Hi Mr_Wonder_Why 

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:

edit the debug node to output the complete msg object

 

 

see msg.a in the debug output

 

Best regards, 

Nick

View original
4 replies