[GH-ISSUE #1538] Please add callback in waitForConnectResult() #1312

Open
opened 2026-02-28 01:29:32 +03:00 by kerem · 1 comment
Owner

Originally created by @realA10001986 on GitHub (Dec 31, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1538

Right now, waitForConnectResult() does a plain while-loop to wait for a WiFi connection. This blocks the application.

My simple suggestion is to add a callback inside waitForConnectResult() in order to be able to (continue to) play audio and service other real-time stuff while waiting for WiFi to connect.

Originally created by @realA10001986 on GitHub (Dec 31, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1538 Right now, waitForConnectResult() does a plain while-loop to wait for a WiFi connection. This blocks the application. My simple suggestion is to add a callback inside waitForConnectResult() in order to be able to (continue to) play audio and service other real-time stuff while waiting for WiFi to connect.
Author
Owner

@realA10001986 commented on GitHub (Dec 31, 2022):

OK, tested this (with the delay reduced to 20 as well), on the ESP32 I2C sound is a no-go, but simple LED blinking can be done. Can be moved down the TODO list ;)

<!-- gh-comment-id:1368227850 --> @realA10001986 commented on GitHub (Dec 31, 2022): OK, tested this (with the delay reduced to 20 as well), on the ESP32 I2C sound is a no-go, but simple LED blinking can be done. Can be moved down the TODO list ;)
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#1312
No description provided.