How to write the string array containing hex commands to serial out node without buffer on node v0.10.40/node-red v0.15.2

You can go back to the 0.10.x version of the Buffer docs to see the available functions: https://nodejs.org/docs/latest-v0.10.x/api/buffer.html

I think the following would do it:

msg.payload = new Buffer([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
return msg;
3 Likes