mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #725] Time to Connect #605
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#605
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @josemariaaraujo on GitHub (Sep 11, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/725
(ESP Core Version: 2.4.1)
Hi,
I've trying to get my power consumption down in a battery powered sensor, and after some profiling I've found that most of my awake time was spent in WiFiManager autoConnect (with a static IP) , spending always more than 3 seconds to establish a connection, much longer than if done directly with
WiFi.config(..); WiFi.begin(); while ( WiFi.status() != WL_CONNECTED ) delay(1);which only took 0.2-0.3s.After going deeper in your code, I've found the culprit: in
int WiFiManager::connectWifiif I commentETS_UART_INTR_DISABLE(); wifi_station_disconnect(); ETS_UART_INTR_ENABLE();I get the same connection times as using the code above.I don't know enough of the ESP8266 to understand if what I have commented is still relevant and should be left alone. But maybe someone is also trying to get the lowest consumption while still using WiFiManager for it's benefits, and this issue/solution will help them.
Thank you for your great work!
@tablatronix commented on GitHub (Sep 12, 2018):
Yeah its already detailed in development branch
@tablatronix commented on GitHub (Sep 12, 2018):
#598