mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #509] ESP8266WebServer not closing after the connection to a new AP #426
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#426
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 @fabianoriccardi on GitHub (Feb 7, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/509
Probably you already knowabout it, but then the WifiManager change to AP --> STA it doens't close the ESP8266WebServer, so my WebServer (in the main loop) can't restart properly.
Are you going to fix it?
@tablatronix commented on GitHub (Feb 7, 2018):
What does "change from ap --> sta" mean?
When saving
@fabianoriccardi commented on GitHub (Feb 7, 2018):
I mean the mode of the WiFi: from Access Point mode to Station mode
@tablatronix commented on GitHub (Feb 7, 2018):
But when and where?
@tablatronix commented on GitHub (Feb 7, 2018):
Do you have example, are you testing on development branch ?
@fabianoriccardi commented on GitHub (Feb 7, 2018):
No, I'm not testing the dev branch, just the official Arduino version.
Assuming that the first connection to WiFi has already taken place, I have my own Webserver the runs in the main loop. If the network disappear, yuor library is called again to switch in Access Point mode and get the new credentials. The user will put the new credentials. After this, the control flow go back to my main program ( the usual loop), but my WebServer is not going to restart.
I checked your code and noticed that you never call server->stop();
(Sorry for poor English)
@tablatronix commented on GitHub (Feb 7, 2018):
ok I will look at maybe a hotfix, but there is pretty much NO development or maintenance being done on that version.
@fabianoriccardi commented on GitHub (Feb 7, 2018):
Ok, I will try the dev version, thanks again!