|
ESPHome 2026.1.0-dev
|
Global callback that aggregates OTA state from all OTA components. More...
#include <ota_backend.h>
Public Member Functions | |
| void | add_global_state_listener (OTAGlobalStateListener *listener) |
| void | notify_ota_state (OTAState state, float progress, uint8_t error, OTAComponent *component) |
Protected Attributes | |
| std::vector< OTAGlobalStateListener * > | global_listeners_ |
Global callback that aggregates OTA state from all OTA components.
OTA components call notify_ota_state() directly with their pointer, which forwards the event to all registered global listeners.
Definition at line 112 of file ota_backend.h.
|
inline |
Definition at line 114 of file ota_backend.h.
|
inline |
Definition at line 116 of file ota_backend.h.
|
protected |
Definition at line 123 of file ota_backend.h.