I have a char array that contains hex data as ascii text and need to convert it into bytes.
Example
char tagData[8] = {'0', '1', 'A', 'A', 'B', 'B', 'C', 'C' };
uint8_t data[4];
// I need to take the tagData and make it so that data[] contains the following
data[0] = 0x01;
data[1] = 0xAA;
data[2] = 0xBB;
data[3] = 0xCC;`
I have google for how to do this but have not been successful. Thanks for any help you might be able to offer.