--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/49ad4d71-d0cd-437c-8990-d75e16a454d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The docs have a good page on working with messages, it is well worth a read.
https://nodered.org/docs/user-guide/messages
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send an email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/2de56ef3-8507-4f4a-a575-f520132e0b90%40googlegroups.com.
Note I've also responded to the same question on StackOverflow.
On 25 April 2018 at 16:11, Mark Setrem <mse...@gmail.com> wrote:
The docs have a good page on working with messages, it is well worth a read.
https://nodered.org/docs/user-guide/messages
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
ColinThough if that is all you are trying to do then you can use a Change node set to Move msg.payload.body Into msg.payloadreturn msg;You must always return a message, you are returning a string. If you want the body in msg.payload then you can domsg.payload = msg.payload.body;
On 25 April 2018 at 14:17, Ahmed Garssallaoui <garssalla...@gmail.com> wrote:
hi guys,I am trying to extract the 'body' part of my received mqtt message as a JSON format, the body is in base64.First I tried to retrieve only the body part so I wrote this function:return msg.payload.body;but I got this error:"Function tried to send a message of type string"any one can help me to solve this ??
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.