I connected GPIO16 to RST and wrote a simple program that sends data over WiFi. I am using Arduino IDE so I tried the API calls in the package. I tried:
Code: Select all
ESP.deepSleep(10*1000000, RF_DISABLED);
Code: Select all
ESP.deepSleep(10*1000000, WAKE_RF_DISABLED);
... and it didn't work. Power consumption drops when the device enters deep sleep mode but goes back to normal when it returns from it. RF also works and I can send data over WiFi.
Then I tried ESP8266 SDK calls. I imported ..
Code: Select all
extern "C" {
#include "user_interface.h"
}
.. and called ..
Code: Select all
system_deep_sleep_set_option(4);
system_deep_sleep(10*1000000);
.. and the behaviour is the same.
How can I wake up the chip with RF turned off (lower power consumption)?
Thanks