easytarget / esp32-cam-webserver

Expanded version of the Espressif ESP webcam
https://hackaday.io/project/168563-7-esp32-cam-example-expanded
GNU Lesser General Public License v2.1
1.3k stars 352 forks source link

Watchdog API changes in arduino-esp32 version 3.x.x #319

Open TylerWhittaker opened 4 months ago

TylerWhittaker commented 4 months ago

There are some breaking API changes related to watchdog functionality in the recently released 3.x.x branch of arduino-esp32.

The Interrupt Watchdog API (functions/types/macros prefixed with esp_intwdt) has been made into a private API. Thus, the previous include path #include "esp_int_wdt.h" has been removed. If users still require usage of the Interrupt Watchdog API (though this is not recommended), it can be included via #include "esp_private/esp_int_wdt.h".

So you're probably going to need to update esp32-cam-webserver.ino and app_httpd.cpp with something like:

#if ESP_ARDUINO_VERSION_MAJOR >= 3
    #include "esp_private/esp_int_wdt.h"
#else
    #include "esp_int_wdt.h"
#endif

The API for esp_task_wdt_init() has changed as follows:

  • Configuration is now passed as a configuration structure.
  • The function will now handle subscribing of the idle tasks if configured to do so.
dsssssssss9 commented 1 month ago

has there been any progress on this please??

I am still unable to compile