ESPHome  2024.12.2
Public Member Functions | Protected Attributes
esphome::ota::OTAGlobalCallback Class Reference

#include <ota_backend.h>

Public Member Functions

void register_ota (OTAComponent *ota_caller)
 
void add_on_state_callback (std::function< void(OTAState, float, uint8_t, OTAComponent *)> &&callback)
 

Protected Attributes

CallbackManager< void(OTAState, float, uint8_t, OTAComponent *)> state_callback_ {}
 

Detailed Description

Definition at line 75 of file ota_backend.h.

Member Function Documentation

◆ add_on_state_callback()

void esphome::ota::OTAGlobalCallback::add_on_state_callback ( std::function< void(OTAState, float, uint8_t, OTAComponent *)> &&  callback)
inline

Definition at line 82 of file ota_backend.h.

◆ register_ota()

void esphome::ota::OTAGlobalCallback::register_ota ( OTAComponent ota_caller)
inline

Definition at line 77 of file ota_backend.h.

Field Documentation

◆ state_callback_

CallbackManager<void(OTAState, float, uint8_t, OTAComponent *)> esphome::ota::OTAGlobalCallback::state_callback_ {}
protected

Definition at line 87 of file ota_backend.h.


The documentation for this class was generated from the following file: