ESPHome 2026.1.3
Loading...
Searching...
No Matches
esphome::ota::HostOTABackend Class Reference

Stub OTA backend for host platform - allows compilation but does not implement OTA. More...

#include <ota_backend_host.h>

Inheritance diagram for esphome::ota::HostOTABackend:
esphome::ota::OTABackend

Public Member Functions

OTAResponseTypes begin (size_t image_size) override
 
void set_update_md5 (const char *md5) override
 
OTAResponseTypes write (uint8_t *data, size_t len) override
 
OTAResponseTypes end () override
 
void abort () override
 
bool supports_compression () override
 
- Public Member Functions inherited from esphome::ota::OTABackend
virtual ~OTABackend ()=default
 

Detailed Description

Stub OTA backend for host platform - allows compilation but does not implement OTA.

All operations return error codes immediately. This enables configurations with OTA triggers to compile for host platform during development.

Definition at line 10 of file ota_backend_host.h.

Member Function Documentation

◆ abort()

void esphome::ota::HostOTABackend::abort ( )
overridevirtual

Implements esphome::ota::OTABackend.

Definition at line 21 of file ota_backend_host.cpp.

◆ begin()

OTAResponseTypes esphome::ota::HostOTABackend::begin ( size_t image_size)
overridevirtual

Implements esphome::ota::OTABackend.

Definition at line 13 of file ota_backend_host.cpp.

◆ end()

OTAResponseTypes esphome::ota::HostOTABackend::end ( )
overridevirtual

Implements esphome::ota::OTABackend.

Definition at line 19 of file ota_backend_host.cpp.

◆ set_update_md5()

void esphome::ota::HostOTABackend::set_update_md5 ( const char * md5)
overridevirtual

Implements esphome::ota::OTABackend.

Definition at line 15 of file ota_backend_host.cpp.

◆ supports_compression()

bool esphome::ota::HostOTABackend::supports_compression ( )
inlineoverridevirtual

Implements esphome::ota::OTABackend.

Definition at line 17 of file ota_backend_host.h.

◆ write()

OTAResponseTypes esphome::ota::HostOTABackend::write ( uint8_t * data,
size_t len )
overridevirtual

Implements esphome::ota::OTABackend.

Definition at line 17 of file ota_backend_host.cpp.


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