CircuitSetup / Expandable-6-Channel-ESP32-Energy-Meter

Hardware & Software documentation for the CircuitSetup Expandable 6 Channel ESP32 Energy Meter. Works with ESPHome and Home Assistant.
https://circuitsetup.us/product/expandable-6-channel-esp32-energy-meter/
MIT License
519 stars 104 forks source link

EmonESP AP Mode and Watchdog #11

Closed CircuitSetup closed 3 years ago

CircuitSetup commented 4 years ago

If the ESP32 goes into AP mode, the watchdog is triggered because WIFI_CLIENT_DISCONNECT_RETRY is set to 10 seconds.

Need to write some code to handle the watchdog if WIFI_CLIENT_DISCONNECT_RETRY > 5000 (5 seconds)

presslab-us commented 4 years ago

Maybe it would be a good idea to get PlatformIO working instead of the Arduino IDE? That way these defines could be set as a compiler option.

CircuitSetup commented 4 years ago

I've been thinking about that. The WDT was also being triggered by async_tcp, and setting CONFIG_ASYNC_TCP_USE_WDT to 0 prevents it from being triggered.

caronte-crc commented 3 years ago

I found a problem installing src_6chan on an esp32. It reboots after wifi-setup. The error on the monitor serie say "task watchdog got triggered. the following tasks did not reset the watchdog in time" Looking for the source of the error found that just commenting out a delay fix the problem. … // Bring up the web server web_server_setup(); //delay(500); <-- Fix continuos reboot. …