node-red-contrib-i2c icon indicating copy to clipboard operation
node-red-contrib-i2c copied to clipboard

int payload sent as french letter

Open Ya3ny opened this issue 7 years ago • 3 comments

Am I missing something about using only numbers for the payload?

When sending a message consisting of letters and numbers to an Arduino slave the serial monitor prints the correct payload.

When sending a message consisting of only numbers the serial monitor prints strange characters

Ya3ny avatar Jan 14 '18 15:01 Ya3ny

Sorry for the late reply. I was working on other projects and had some private issues.

Could you give me some values you tried to send?

nielsnl68 avatar May 03 '19 10:05 nielsnl68

No worries!

Numbers like 1207 and 2434

Ya3ny avatar May 03 '19 21:05 Ya3ny

Check, and what hex values did you got back on the serial monitor? i expect it will returning 0x04B7 or 0xB704 and 0x0‭982‬ or 0x‭82‬09, is it not?

The node breaks a integer value > 255 into 2 bytes thats why you see those strange strange characters in the monitor.

nielsnl68 avatar May 03 '19 21:05 nielsnl68