send hexadecimal data from serialprint
Posted:
Thu May 04, 2017 11:32 am
by ghost128k
hello can anyone say how i send this hexadecimal string using serialprint?
this is the hexadecimal data: BCC0A80101001A
Thanks in advance
Re: send hexadecimal data from serialprint
Posted:
Thu May 04, 2017 2:32 pm
by Electroguard
Have a look at a serial Music Player and Voice Announcer I did a while ago for an example of sending Hex out the serial port.
You can use eg: hextoint("0C") to arrive at a decimal number if needed.
But be warned that if I remember rightly it wasn't possible to serially transmit zero (00).
http://www.esp8266.com/viewtopic.php?f=40&t=9381http://www.esp8266.com/viewtopic.php?f=41&t=11382