Skip to content

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

@TylerWhittaker

Description

@TylerWhittaker

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_int_wdt_) 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions