[GH-ISSUE #920] Is it possible to stop the AP on successful connection? #778

Closed
opened 2026-02-28 01:27:00 +03:00 by kerem · 3 comments
Owner

Originally created by @eyyit on GitHub (Aug 3, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/920

Using development branch on commit 34d9a975b5.

I'd like to turn off the AP mode once there is a successful wifi connection. I tried stopWebPortal() but that probably just stops the http server. Is it possible to also turn off the AP?

Thanks

Originally created by @eyyit on GitHub (Aug 3, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/920 Using development branch on commit 34d9a975b5339bb5510f5718fbd1530dff9de733. I'd like to turn off the AP mode once there is a successful wifi connection. I tried stopWebPortal() but that probably just stops the http server. Is it possible to also turn off the AP? Thanks
kerem closed this issue 2026-02-28 01:27:01 +03:00
Author
Owner

@eyyit commented on GitHub (Aug 6, 2019):

WiFi.softAPdisconnect(true) seems to do it properly.

<!-- gh-comment-id:518486984 --> @eyyit commented on GitHub (Aug 6, 2019): WiFi.softAPdisconnect(true) seems to do it properly.
Author
Owner

@dknop97 commented on GitHub (Aug 8, 2019):

I have tried to use the WiFi.softAPdisconnect(true) in my code, but don't worked. So, I added this line in the library (WiFiManager.cpp file -> line 276, in WiFiManager::connectWiFi..., before the first if condition, and it's worked for me.
Sorry if I make somes mistakes, I'm improving my English yet.

<!-- gh-comment-id:519495798 --> @dknop97 commented on GitHub (Aug 8, 2019): I have tried to use the WiFi.softAPdisconnect(true) in my code, but don't worked. So, I added this line in the library (WiFiManager.cpp file -> line 276, in WiFiManager::connectWiFi..., before the first if condition, and it's worked for me. Sorry if I make somes mistakes, I'm improving my English yet.
Author
Owner

@tablatronix commented on GitHub (Aug 8, 2019):

    //manually stop the config portal if started manually, stop immediatly if non blocking, flag abort if blocking
    bool          stopConfigPortal();
<!-- gh-comment-id:519511290 --> @tablatronix commented on GitHub (Aug 8, 2019): ```C++ //manually stop the config portal if started manually, stop immediatly if non blocking, flag abort if blocking bool stopConfigPortal(); ```
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#778
No description provided.