[GH-ISSUE #292] How to try to reconnect to a saved wifi network? (when the connection is lost) #244

Closed
opened 2026-02-28 01:24:17 +03:00 by kerem · 0 comments
Owner

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)

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)
kerem closed this issue 2026-02-28 01:24:17 +03:00
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#244
No description provided.