-->
Page 2 of 2

Re: String composition

PostPosted: Sat Mar 04, 2017 10:26 pm
by marcomart
But isn't the same, in modbus rtu you must send the caracter in a binary way, some devices could accept also
modbus ascii (this is the case that you will use the string).
It's just the matter of damn chr(0) !! I wonder if could be the same with serial port I have to try up. At first I was
thinking to a bug but probably it isn't. If I send to the serial port of the 8051 it will get two different codes str(0)
return 30H, chr(0) will return 00H.

Re: String composition

PostPosted: Sat Mar 04, 2017 10:33 pm
by marcomart
I found this:
https://www.arduino.cc/en/reference/string

That's why assembly is always assembly!!