mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #920] Is it possible to stop the AP on successful connection? #778
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#778
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 @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
@eyyit commented on GitHub (Aug 6, 2019):
WiFi.softAPdisconnect(true) seems to do it properly.
@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.
@tablatronix commented on GitHub (Aug 8, 2019):