i have a function which is getting a char array with the contain like “AA11223344556677”.
It’s a char array with a String in it. right?!
To format this like AA and than 11 and 22 etc. each in a different variable I used this code. ( in the file below)
My buffer contains the actual line, because i have more lines like “AA11223344556677”.
So, i want to get HEX in the end to send this through CANBUS, cause i get for AA the number 187. I don’t know why.
Can someone help me on converting this to HEX in a format like followed.
format: 0xAA, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77
Thank your for your support
new 1.txt (404 Bytes)