Page 1 of 1

IDF 4.0 light sleep and maintaining WiFi AP connection

Posted: Thu May 28, 2020 9:27 pm
by RMandR
My app was able to stay WiFi connected to the AP without issues until I added periodic light_sleep for power saying.

Essentially the same code presented in the light_sleep example: https://github.com/espressif/esp-idf/bl ... ple_main.c

Code: Select all

/* Enter sleep mode */
        esp_light_sleep_start();
 
Now shortly after a few light sleep naps (~5 seconds), there are bcn missed errors, and eventually it disconnects from AP.

Is there something special that needs to happen to maintain WiFi connectivity during light_sleep?

Thanks!

Re: IDF 4.0 light sleep and maintaining WiFi AP connection

Posted: Fri May 29, 2020 1:15 am
by WiFive

Re: IDF 4.0 light sleep and maintaining WiFi AP connection

Posted: Fri May 29, 2020 8:00 pm
by RMandR
@WiFive, Thank you!

Automatic light_sleep did the trick.