Hey any idea why this does not work properly?
char addrStr; byte addr; WiFi.macAddress(addr); sprintf(addrStr,"%02X-%02X-%02X-%02X-%02X-%02X",addr,addr,addr,addr,addr,addr);
I have tried casts (unsigned int) (unsigned char) etc nothing works what happens is the first 3 or 4 bytes of the address get converted properly to string values then it goes haywire.
I have a work around to this problem by converting each byte to char* and writing the characters individually into addrStr but that is super hookie. Any ideas? Am I doing something wrong?