Re: Hangs when coming out of Deep Sleep mode
Posted: Mon Oct 19, 2015 3:15 am
Try something really simple like the following to make sure ESP12 and deepSleep really work. deepSleep on a Huzzah board works fine for me.
Code: Select all
/*
Deep sleep test
Pins RST and GPIO #16 must be shorted
*/
#define SECONDS_DS(seconds) ((seconds)*1000000UL)
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println(F("Before deepSleep"));
ESP.deepSleep(SECONDS_DS(10), WAKE_RF_DISABLED);
// Execution resumes at the top of this function.
}
void loop() {
// The call to deepSleep in setup() means nothing much happens here.
}