I have a string which I send to the arduino using serial monitor. Something like that:
my specific string 0x0F 0x2C 0x98 0xBC
How can I parse this string in the arduino to get an array of hex values:
0x0F 0x2C 0x98 0xBD
? There are two prerequisites:
- All hexadecimal starts with
#
- The size of hexadecimal is 2. No
0x111
or '0xbbb'
#
, as you wrote in the text, or with a0x
, like in the example?