Is there a way to take an 8bit ascii serial data string (11 bytes) from a serial port and and decode it to hex values?
This conversion doesn't work as I believe it only uses 7 bits. I get mostly bad data.
data = Buffer.from(msg.payload,"ascii");
Thanks, Gary
The buffer-parser node will help.
You might look at bitunloader too, not sure but it might do the job too
Thanks for the reply's. I have it working now. Turns out to have been a serial node configuration error. Once I switched the output type to 'buffer' all was good. It was set to 'string' originally.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.