Code:
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(74880);
Serial.setTimeout(2000);
delay(2000);
Serial.println("I'm awake.");
Serial.println("Going into deep sleep for 20 seconds");
ESP.deepSleep(20e6); // 20e6 is 20 microseconds
}
void loop() {
}
Output:
I'm awake.
Going into deep sleep for 20 seconds
ets Jan 8 2013,rst cause:5, boot mode:(3,4)
ets_main.c
There is a 20s pause after the 'Going to deep sleep for 20 seconds' line before printing the boot mode, but then nothing happens after that. Here is my flashing config: https://i.imgur.com/TdovAtD.png
What am I doing wrong?