mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #773] WifiManager disconnects from Wifi and Won't Reconnect #648
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#648
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 @mrlightsman on GitHub (Nov 26, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/773
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
I have several ESP01 that I use as light switches in my house. They are all configured with WiFi Manager with parameters. They are set to DHCP, but have an address reservation in my router (Archer C7) via MAC address.
The code is mostly based on Kakopappa Sinric switch and udp examples. The wifiManager portion is from the master branch example code and expanded with additional parameters.
Problem description
Frequently, they seem to lose connection with the router and go back into ap mode and no longer function until I re-enter the WiFi credentials. They retain their other parameters.
Is there a command to have the ESP request a new IP address via DHCP? I'm thinking this might help renew the connection with the router... assuming the router is at fault.
Or, is there a better solution out there? I am a relative noob so all suggestions are appreciated.
At one time I tried using the development branch, but it broke other parts of my code for some reason. I decided to stick with the master just to be safe...
Settings in IDE
Module:
Generic ESP8266 Module
Additional libraries:
<FS.h>
<arduino.h>
<WebSocketsClient.h>
<ArduinoJson.h>
<WiFiManager.h>
<WiFiUDP.h>
<avdweb_Switch.h>
Sketch
Because I am using all available pins as GPIO, there is no way to get debug messages.
@tablatronix commented on GitHub (Nov 26, 2018):
setConfigPortalTimeout();
let the cp timeout and restart if not connected, or add your own delays to allow time to reconnect.