cotestatnt / async-esp-fs-webserver

ESP32/ESP8266 WebServer, WiFi manager and ACE web editor Arduino library. Based on ESPAsyncWebServer
Apache License 2.0
51 stars 13 forks source link

WDT handling does not work in examlpes with current ESP32 board files. #44

Open vdmprojects opened 2 months ago

vdmprojects commented 2 months ago

From REMOTE_OTA example, remoteOTA.ino line 44:

esp_task_wdt_init(30, 1);

results in : Compilation error: invalid conversion from 'int' to 'const esp_task_wdt_config_t*' [-fpermissive]

I believe there has been an update to espressIF's code for the WDT?

I am using esp32 by Espressif Systems 3.0.4

cotestatnt commented 2 months ago

Warning

Do not install anything, especially from unverified links. To show an example project there is no need to install executables.

The APIs that deal with watchdog management have changed since version 3.x.x of the ESP3 core for Arduino and the example unfortunately has not been updated yet.

I just updated the code to use the new APIs, you can find it in the repository (and starting from the next release of the library, when it will be released). I also updated the JS script in index.htm that performs the online firmware check.