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
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