Hi, I have the following:
char myvar[4] = "0x3B"
unsigned char mac[6];
mac[0] = 0x1A;
mac[1] = 0x22;
....
the question is how can I do this new assignment:
mac[2] = content of myvar[4];
but it has to be stored it in the same format that mac[1] = 0x1A (hexadecimal)
thx.
char myvar[4] = "0x3B"
unsigned char mac[6];
mac[0] = 0x1A;
mac[1] = 0x22;
....
the question is how can I do this new assignment:
mac[2] = content of myvar[4];
but it has to be stored it in the same format that mac[1] = 0x1A (hexadecimal)
thx.