Difference between revisions of "Adafruit HUZZAH ESP8266 breakout"

From ESE497 Wiki
Jump to navigationJump to search
Line 9: Line 9:
 
**Release RESET, then release GPIO0
 
**Release RESET, then release GPIO0
 
**When you release the RESET button, the red LED will be lit dimly, this means its ready to bootload
 
**When you release the RESET button, the red LED will be lit dimly, this means its ready to bootload
 +
** You get the warning: espcomm_syn failed message if you forget to do this
 +
** Wait until the dots stop on the bottom console window to open the serial console
 
** (from https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide)
 
** (from https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide)
 
* Copy the Blink Test code from https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide to test. Red light should blink.
 
* Copy the Blink Test code from https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide to test. Red light should blink.
Line 16: Line 18:
 
** Upload program.  
 
** Upload program.  
 
** Open the serial monitor to see IP and messages from adafruit web server. Make sure the serial data rate is set to 115200 baud.
 
** Open the serial monitor to see IP and messages from adafruit web server. Make sure the serial data rate is set to 115200 baud.
 +
* Get Mac Address of ESP8266
 +
** Add this code to the setup function of the WiFi code
 +
  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("");
 +
    }
 +
  }
 
* UDP Example
 
* UDP Example
 
** http://virtualrouterplus.com/
 
** http://virtualrouterplus.com/

Revision as of 20:20, 25 February 2016

 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("");
   }
 }