Set payload to part of MQTT Message not working

Hi,

I want to get the state payload of an MQTT message
But if I set msg.payload.state of this message to msg.payload with a change node, the payload is not returned to the debug node.

Why is that?

You lose the rest of msg.payload because you have over written msg.payload with that one value

Also you have the debug node set to not display. Click the button on the debug node

Sorry....I feel so stupid....I have now used Move msg.payload.state to msg.payload AND turned on the debug node....and its working now...thanks!

1 Like

If I had a nickel for every dumb thing I’ve done I’d be a millionaire :crazy_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.