I'm trying to program modules with ESP8266 chip using Arduino IDE. So far, I have tried the ESP-01 module and I am just trying to program the ESP-01S. I came across a problem with this module waking up from deep sleep mode. I have this simple code:
#include <ESP8266WiFi.h>
void setup () {
Serial.begin (74880);
Serial.println ("Test");
ESP.deepSleep (60 * 1e6);
}
void loop () {
}
Of course I have GPIO16 connected to the RST pin. When the power supply is connected, the program starts and the text "TEST" is displayed in the console. Then the module sleeps for 60 seconds. After waking up, a message will appear and this will end:
ets Jan 8 2013, rst cause: 2, boot mode: (3,6)
I have tested this code on ESP-01 and it works. Would anyone please advise me where the problem might be?