IDF 4.0 light sleep and maintaining WiFi AP connection

RMandR
Posts: 75
Joined: Mon Oct 29, 2018 3:13 pm

IDF 4.0 light sleep and maintaining WiFi AP connection

Postby RMandR » Thu May 28, 2020 9:27 pm

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!


RMandR
Posts: 75
Joined: Mon Oct 29, 2018 3:13 pm

Re: IDF 4.0 light sleep and maintaining WiFi AP connection

Postby RMandR » Fri May 29, 2020 8:00 pm

@WiFive, Thank you!

Automatic light_sleep did the trick.

Who is online

Users browsing this forum: Corand and 111 guests