A node-red node to convert values in a buffer, integer array or hex string into many different data type(s). Supports Big/Little Endian, BCD, byte swapping and much more.
MIT License
24
stars
8
forks
source link
msg.originalPayload issue when input is a buffer #7
msg.originalPayload (when input is a buffer) is just a reference so if the data is byteswapped, originalBuffer is affected.
Consider cloning before processing.
Consider making the extra properties optional (to cleanup the msg)