ESPHome 2025.7.1
|
Extended callback manager with deferred call support. More...
#include <ota_backend.h>
Public Member Functions | |
StateCallbackManager (OTAComponent *component) | |
void | call_deferred (ota::OTAState state, float progress, uint8_t error) |
Call callbacks with deferral to main loop (for thread safety). | |
Extended callback manager with deferred call support.
This adds a call_deferred() method for thread-safe execution from other tasks.
Definition at line 74 of file ota_backend.h.
|
inline |
Definition at line 76 of file ota_backend.h.
|
inline |
Call callbacks with deferral to main loop (for thread safety).
This should be used by OTA implementations that run in separate tasks (like web_server OTA) to ensure callbacks execute in the main loop.
Definition at line 83 of file ota_backend.h.