[GH-ISSUE #728] Power saving with WiFi Manager #607

Closed
opened 2026-02-28 01:26:12 +03:00 by kerem · 2 comments
Owner

Originally created by @grgoncal on GitHub (Sep 12, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/728

Hi. I'm working on a project with batteries and I'm using WiFi Manager.

Is there a way to enter in light sleep mode for a while and then reconnect with WiFi Manager? I've tried this, but it does not reconnect by itself.

    Serial.println("Sleeping...");
    WiFi.disconnect();
    WiFi.mode(WIFI_OFF);
    WiFi.forceSleepBegin(5 * 1000000L); //In uS. Must be same length as your delay
    delay(5 * 1000); //Hang out at 15mA for 6 seconds
    WiFi.mode(WIFI_STA);
Originally created by @grgoncal on GitHub (Sep 12, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/728 Hi. I'm working on a project with batteries and I'm using WiFi Manager. Is there a way to enter in light sleep mode for a while and then reconnect with WiFi Manager? I've tried this, but it does not reconnect by itself. ``` Serial.println("Sleeping..."); WiFi.disconnect(); WiFi.mode(WIFI_OFF); WiFi.forceSleepBegin(5 * 1000000L); //In uS. Must be same length as your delay delay(5 * 1000); //Hang out at 15mA for 6 seconds WiFi.mode(WIFI_STA); ```
kerem closed this issue 2026-02-28 01:26:12 +03:00
Author
Owner

@tablatronix commented on GitHub (Sep 12, 2018):

No idea, never used it

Here is the mega issue
https://github.com/esp8266/Arduino/issues/1381

<!-- gh-comment-id:420771055 --> @tablatronix commented on GitHub (Sep 12, 2018): No idea, never used it Here is the mega issue https://github.com/esp8266/Arduino/issues/1381
Author
Owner

@grgoncal commented on GitHub (Sep 12, 2018):

Links2004 Response to the tablatronix link worked for me.

Thank you!

<!-- gh-comment-id:420785916 --> @grgoncal commented on GitHub (Sep 12, 2018): Links2004 Response to the tablatronix link worked for me. Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#607
No description provided.