Adafruit HUZZAH ESP8266 breakout

From ESE497 Wiki
Revision as of 20:20, 25 February 2016 by Ed (talk | contribs)
Jump to navigationJump to search
 uint8_t macArray[6];
 WiFi.macAddress(macArray) ;
 for (int i=0;i<sizeof(macArray) ; i++) {
   Serial.print(macArray[i],HEX) ;
   if (i != sizeof(macArray)-1) {
     Serial.print(":") ;
   } else {
     Serial.println("");
   }
 }