7 #ifdef USE_OTA_STATE_CALLBACK 58 virtual void abort() = 0;
63 #ifdef USE_OTA_STATE_CALLBACK 66 this->state_callback_.add(std::move(callback));
74 #ifdef USE_OTA_STATE_CALLBACK 79 this->state_callback_.call(state, progress, error, ota_caller);
83 this->state_callback_.add(std::move(callback));
virtual void set_update_md5(const char *md5)=0
virtual OTAResponseTypes end()=0
virtual bool supports_compression()=0
void register_ota_platform(OTAComponent *ota_caller)
void add_on_state_callback(std::function< void(ota::OTAState, float, uint8_t)> &&callback)
std::unique_ptr< ota::OTABackend > make_ota_backend()
virtual OTAResponseTypes write(uint8_t *data, size_t len)=0
void add_on_state_callback(std::function< void(OTAState, float, uint8_t, OTAComponent *)> &&callback)
virtual OTAResponseTypes begin(size_t image_size)=0
Implementation of SPI Controller mode.
void register_ota(OTAComponent *ota_caller)
virtual ~OTABackend()=default
OTAGlobalCallback * get_global_ota_callback()