I have a string of variable length that is received from another device via serial port in the following format (without quotes)
"data7E3B99D7"
After the word data, I need to extract each 2 characters into an int8 array as follows:
mydata[0] = 0x7E
mydata[1] = 0x3B
mydata[2] = 0x99
mydata[3] = 0xD7
Can someone give me a piece of code that can convert the string data into hex numbers and put them in this array?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum