How to parse the payload of an MQTTEvent message node? #795
Answered
by
mvladic
ricardogfp
asked this question in
Q&A
-
I have used a SetVariable node with an input (message) of type any to connect to the output of the MQTTEvent message node, then I set the value message.payload and a string type variable. After debug, I see that the variable content is the MQTT topic instead of the payload. What is the correct way to get the value of the payload? |
Beta Was this translation helpful? Give feedback.
Answered by
mvladic
May 1, 2025
Replies: 1 comment
-
Check the MQTT example: Output And you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ricardogfp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check the MQTT example:
Output
message
is of typestruct:$MQTTMessage
:And you can use
message.payload
.