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!