mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #103] Quit WiFiManager #81
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#81
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 @pieman64 on GitHub (Feb 15, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/103
@tzapu I have added a Quit option to your WiFiManager menu as shown below.

The menu option works fine except I don't know how to leave WiFiManager and return to the next line of my sketch. I currently have the following in your cpp file:
What extra code would I require to stop the AP created by WiFiManager and return to my sketch? I don't want to reset the ESP, just move on a maybe connect to another AP as covered by the subsequent lines in my sketch.
@tzapu commented on GitHub (Feb 15, 2016):
first thought, if you set the timeout to 1, it will exit immediatelly
@tzapu commented on GitHub (Feb 15, 2016):
another option would be to set connect to true and break after config to true, that would try to connect as well to last settings i think and then exit
@pieman64 commented on GitHub (Feb 16, 2016):
@tzapu issue 86 regarding WiFiManager and webserver as identified by @knnniggett at https://github.com/tzapu/WiFiManager/issues/86 was also the problem I came up against yesterday.
I have a standard OTA webserver sketch that allows me to upload new firmware to my Wemos D1 Mini and within the sketch I have calls to WiFiManager. This is all tied to Blynk access so I want to be able to press one button in the Android app for firmware updates and another for accessing WiFiManager with additional paramaters (Blynk token and firmware revision number).
I spent all day yesterday trying to get them to work together but the best I could do was one or the other, not both. I will look through the sktech examples provided by the two of you and see if I have any success.
@tzapu commented on GitHub (Feb 16, 2016):
when wifi manager starts, it s spinning up the AP as well, which might drop the connection to the client and do all kinds of other bad stuff to the things in your sketch...
this was meant to start only when you can t connect to wifi - hence wifimanager, then we bolted on custom params and they would indeed benefit from being able to start the config portal without all the other crap :)
i have posted a http server example on a gist around here, do you have it? that should be a good starting point for a webserver with wifimanager
@pieman64 commented on GitHub (Feb 16, 2016):
Do you mean this https://gist.github.com/tzapu/ecc0759829d30d5a6152 @tzapu?
@tzapu commented on GitHub (Feb 16, 2016):
that s the one
@knight-of-ni commented on GitHub (Feb 16, 2016):
Sorry guys, I've been focusing on another project as of late. I have not tried @tzapu 's gist yet, but it is on my to-do list.