node-red-contrib-i2c
node-red-contrib-i2c copied to clipboard
int payload sent as french letter
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
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?
No worries!
Numbers like 1207 and 2434
Check, and what hex values did you got back on the serial monitor? i expect it will returning 0x04B7 or 0xB704 and 0x0982 or 0x8209, is it not?
The node breaks a integer value > 255 into 2 bytes thats why you see those strange strange characters in the monitor.