I hope to find some helps here.
At first I convert INT to CHAR --> Easy, take a look:
// Split the string into array of individual values var parts = msg.payload.split(" "); // Remove the last blank part caused by the trailing comma parts.pop(); // Parse each part of the string to a number var bytes = parts.map(v => parseInt(v)) // Create a new Buffer from those bytes and convert back to String msg.payload = Buffer.from(bytes).toString(); return msg;
It works... But now I like to do same in other direction... Hmmm
87 76 67 48 50 55 48 ??
I testing something but nothings works,
at first I create an array for each character:
var parts = msg.payload.split("");
then me is missing a rule to convert
So you see currently I´am not an expert yet.
Hope anybody understand my issue.
Thanks in advance.