Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Mattia Durli
#43232 Hello, I've given up with deep sleep, because it works for some times then it hangs on reset (gpio 0 and 2 up, 15 down, 16 to RST), as it is reported in many other forums.

I've made modem sleep work, it activates and deactivates, but it passes from 76mA to 22mA only:

WiFi.disconnect();
WiFi.mode(WIFI_OFF);
delay(1);
WiFi.forceSleepBegin();
delay(15000);

when in delay stays at 22mA and then loops.

I've managed to enter light sleep, and it goes from 76mA to 7mA, but I'm unable to wake it up:

wifi_fpm_set_sleep_type(LIGHT_SLEEP_T);
wifi_fpm_open(); // Enables force sleep
Serial.println("A");
wifi_fpm_do_sleep(0xFFFFFFF); // Sleep for longest possible time
delay(1);
Serial.println("A");

it never gets to "A", and it stays at 7mA

Doing any combination of wait with both the wifi_fpm_do_sleep argument or with the delay:

wifi_fpm_do_sleep(10000000); // Sleep for longest possible time
delay(10000);
Serial.println("A");

it gets to print "A", but never goes to 7mA, always 76mA.

Any suggestion?
At this point going to 7mA and back would be great.

Thanks!