Closed tobiaranz closed 4 months ago
Hey did you have the same behavior as the one expressed in https://github.com/vekexasia/comfoair-esp32/issues/17 ?
Yes, I have a similar behaviour I tried adding a wifi relay in order to restart the whole VMC when it doesn't send any new data for ~5 minutes. This works some times, but also happens that giving back power with the esp/can connected, the VMC doesn't boot up.
The code I added anyway prevents the esp from losing the wifi connection, which used to happen often even if the signal is good in that area.
I'm using an ESP32-WROOM-32 (D1 mini) and the CAN transceiver SN65HVD230
UPDATE: I used to power the esp with the 12v from the comfoair and with a step-down converter to get to 5v. I tried using an external phone charger instead and it has been running the last week with no problems
I had this issue that the esp would keep losing wifi connection until it was restarted manually. Wifi connection only lasted 1-2 of hours before it dropped. Despite the ::WiFi.setAutoReconnect(true); function in wifi.cpp, it would not reconnect.
So I found a workaround, adding this simple function inside the void WiFi::loop
if (::WiFi.status() != WL_CONNECTED) { ::WiFi.begin(WIFI_SSID, WIFI_PASS); ::WiFi.setAutoReconnect(true); }
Since this update I have not had the problem anymore Anybody had the same issue?