-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
ESP32 does not reconnect to Wifi #2400
Comments
I have same issue.
|
You are right. at least the setting of |
@tbnobody I think @LPG-PG is right, we maybe somehow using the wrong signature for the The actual The issue seems to be in the „new credentials… “ code path of the OpenDTU/src/NetworkSettings.cpp Lines 279 to 298 in 3dc70ab
If this is the case/cause somehow that code path gets active after 2-5 days for some yet unknown reason, but it should eventually show up in the logging. |
I haven't tried it yet. |
What happened?
After an indefinite period of time, the ESP32 module loses the connection to the WiFi. No new DHCP lease is obtained, so neither web, API, MQTT nor ping works.
To Reproduce Bug
It happens ramdomly between 1 and 5 days
Expected Behavior
OpenDTU has to be reboot to fix it temporary
Install Method
Pre-Compiled binary from GitHub releases
What git-hash/version of OpenDTU?
v24.10.15
What firmware variant (PIO Environment) are you using?
generic_esp32
Relevant log/trace output
No response
Anything else?
I checked some parts of the code and I'm not sure, if there is a bug in NetworkSettings.cpp -> NetworkSettingsClass::applyConfig()
line 288ff
I mean, that Wifi.begin is called with Channel 1 because the enum WIFI_ALL_CHANNEL_SCAN value is 1.
The declaration of the called function is:
So the third paramter is the channel, which is in this case 1.
Please confirm the following
The text was updated successfully, but these errors were encountered: