Hi all, I'm looking for a way to add a carriage return [0xd] at the end of my buffer array but can't figure out how.
For reference, here is my string to carriage function
var payload = msg.payload
b = Buffer.from(msg.payload);
msg.payload=b;
return msg;
I Tried adding a \r to my payload string but unfortunately, it's not working