-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi disconnects after 48h-20min but reconnects again after 48h-20min #9987
Comments
Please enable core debug level to verbose and let's see what reason the WiFi gives for disconnecting. 2900 minutes is oddly specific and in no way around some 32 bit overflow (or similar) |
|
And what reason does it give when it fails to reconnect after that? |
Compiled the same code with 1.0.6, runs for a week now. |
Do you have "band steering" enabled on your access point? |
and then after a couple of seconds again
|
I do not see any "band steering" on the router. |
uint8_t protocol = WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G; // Default to BG
esp_wifi_set_protocol(WIFI_IF_STA, protocol); N.B. you need to set these before you make the connection |
This sounds a lot like the router is refusing to allocate a DHCP address. Can you try a manual IP assignment and see if it has the same issue? This will help identify what the router is having a problem with. |
Board
ESP32-Wroom32 (ESP32 Dev Module)
Device Description
Module on breadboard
Hardware Configuration
DHT20
Version
v3.0.1
IDE Name
Arduino IDE
Operating System
ubuntu linux
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
115200
Description
WiFi connects, but after 48h - ~20mins it disconnects and could not reconnect.
But after another 48h - ~20mins (without connection) it suddenly is able to reconnect again.
It is otherwise fully working, serial console shows normal output of wifi status, temp every 60s
(this does not happen with 1.0.6)
I don't see a reason anywhere, in the WiFi AP/router log i see only lots of "esp32-xxxx connects/disconnects"
Sketch
Basically this example
(changed only ssid+pass, some debug msgs every 60s, dht20 temp, everything working, but wifi is disconnected)
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: