so in a sketch i have a byte counter.
I'm sending this counter appended at the end of a char array I'm transmitting out the arduino UART.
my dilemma is that the message i send has to be formatted as ascii hex. this is a requirement of the receiving device.
i.e. the text TEST is sent as 54455354.
This is easy enough to do with the serial monitor
Serial.print("TEST", HEX)
Adding on that counter as part of the message is where I'm getting stuck.
for instance if messageCounter = 1
TEST1 = 5445535431
This is where my inexperience shows. As far as i can tell I'd have to convert that byte value to the same value representation in ascii to print it in hex format.
There has to be a simpler way that I'm not seeing. Any suggestions?