ESPHome 2026.3.0
Loading...
Searching...
No Matches
esphome::ota::HostOTABackend Class Referencefinal

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

#include <ota_backend_host.h>

Public Member Functions

OTAResponseTypes begin (size_t image_size)
 
void set_update_md5 (const char *md5)
 
OTAResponseTypes write (uint8_t *data, size_t len)
 
OTAResponseTypes end ()
 
void abort ()
 
bool supports_compression ()
 

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 ( )

Definition at line 21 of file ota_backend_host.cpp.

◆ begin()

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

Definition at line 13 of file ota_backend_host.cpp.

◆ end()

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

Definition at line 19 of file ota_backend_host.cpp.

◆ set_update_md5()

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

Definition at line 15 of file ota_backend_host.cpp.

◆ supports_compression()

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

Definition at line 17 of file ota_backend_host.h.

◆ write()

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

Definition at line 17 of file ota_backend_host.cpp.


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