mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #292] How to try to reconnect to a saved wifi network? (when the connection is lost) #244
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#244
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 @gonsays on GitHub (Jan 11, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/292
I am trying to do a checkWiFi() function, in order to verify if the esp8266 is connected to the internet.
Previously, I would declare a const char* ssid="SSID" & const char* password="PASSWORD" and I would execute several times the code WiFi.begin(ssid,password), in order to reconnect if the wifi connection was lost.
My question is: How can I do the WiFi.begin with the previously saved credentials using WiFiManager to try several times to connect to the saved wifi network?
I mean, if the connection is lost, the esp8266 will reset and put itself as AP to reconfigure the wifi settings (if the wifi network declared is temporarily off)