Currently having an issue which I imagine is very simple but so simple I can`t find the answer.
I`ve set up a MQTT server to write to a regiter remotely. The Msg.paylod comes through as indented by "" and I need to figure out how to unindent the message.
Set the mqtt node to output a parsed json object, then the string will be turned into a javascript object, and you will be able to access the data in msg.payload.
So the data Im reading is split into data and a buffer. If I was hoping to specify an exact point in that array what code would I put to call the msg.payload?
For example
Wow I never knew that thank you ! So when I call the payload path which is payload.data[4] I recieve this error message saying the payload is not definied? I thought I`d try the Number oprand but this doesnt solve the problem ...