mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1761] wm.setConfigPortalBlocking(false) + big delay = not working #1491
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#1491
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 @Jehn84 on GitHub (Aug 21, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1761
I'm trying to use the library in my project. An implementation with wm.setConfigPortalBlocking(false) is needed, but when a large delay is used in the loop, the portal either does not work at all, or it freezes very much and the web interface does not load. What can be done?
For example:
@Chalta commented on GitHub (Sep 6, 2024):
The wm.process needs to run continuously. It can't just run once and then "not run" for 60000 ms. A hint is how often you get the heartbeat "." printed to your serial monitor.
You need to set up a non-blocking timer in loop() using a while or an if statement, and/or process a callback from wifi manager when the captive portal returns a result. See the example sketches in this repository.
@tablatronix commented on GitHub (Sep 9, 2024):
What they said