Hi,
I'm looking for some clarification on the best way to take the 6 byte mac address of my wifi module and convert it to a char array so that I can create a unique url with it. After much time banging my head against the wall, I've managed to convert it to integers but going from integers to characters has finally brought me to a point where I require a sanity check.
The section of code that's giving me trouble is here:
Turn up the warning level. If you had compiler warnings set to 'All' you would have been warned about this (potential) mistake:
sketch_jul01a.ino: In function 'void getMacIdentifier()':
sketch_jul01a.ino:23:172: warning: format '%i' expects argument of type 'int', but argument 3 has type 'const char*' [-Wformat=]
sprintf(macIdentifierChar, "%i", "%i", "%i", "%i", "%i", "%i", macIdentifier[5], macIdentifier[4], macIdentifier[3], macIdentifier[2], macIdentifier[1], macIdentifier[0]);
^
sketch_jul01a.ino:23:172: warning: too many arguments for format [-Wformat-extra-args]