Invalid JSON string with MQTT node

In the function node

msg.payload = msg.payload.toString();
return msg;

I can not understand the use of the node "node-red-contrib-buffer-parser", the documentation is not too clear on this subject

The documentation is as clear as it can be for a complex problem. I provided a working example (because the user provided sample data and documentation). There are also built-in examples/demos for that node using CTRL+I.

You haven't answered the previous question - do you have a specification or documentation about what each byte in the buffer represents?

If you have this documentation it is quite simple to use the buffer parser to convert the various bytes into real world values.

I do not have the documentation currently. The person who can provide it to me is unavailable at the moment

Without that information there is little that can be done.

Ok, I'll be back to you very soon

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