Hi, im new to arduino programing and i have trouble with byte array converting to array.
byte addr[8];
...
if(status=="ok"){
byte i;
for( i = 5; i >0; i--) {
byte x = addr[i];
if(x < 0x10)
{
Serial.print('0');
}
Serial.print(addr[i],HEX);
}
It print me ex. 0A0B0C0D which is perfect result. But i must do some modification in this values, that i need to get them to an array (with leading 0's).
Also, give a example of the modification you wish to perform on the byte array contents.
There may be an easier way than creating a text representation of the values.