I try to transmit ASCII: NUL dec: 0
If I set CV98=1 and transmit 1Serial("{\0%c[98CV]\255}")
I get in HEX: 00 01 FF it is correct.
If I set CV98=0 and transmit 1Serial("{\0%c[98CV]\255}")
I get in HEX: 00 FF it is incorrect.
I need in HEX: 00 00 FF
I must be flexible with a variable CV and can not hardcoding \0 in the real command (measuring value)
What do i wrong?
Thanks
Volker
I try to transmit ASCII: NUL dec: 0
If I set CV98=1 and transmit 1Serial("{\\0%c[98CV]\\255}")
I get in HEX: 00 01 FF it is correct.
If I set CV98=0 and transmit 1Serial("{\\0%c[98CV]\\255}")
I get in HEX: 00 FF it is incorrect.
I need in HEX: 00 00 FF
I must be flexible with a variable CV and can not hardcoding \\0 in the real command (measuring value)
What do i wrong?
Thanks
Volker