ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
esphome::ota::IDFOTABackend Class Referencefinal

#include <ota_backend_esp_idf.h>

Data Structures

struct  PartitionTablePlan
 

Public Member Functions

OTAResponseTypes begin (size_t image_size, ota::OTAType ota_type=ota::OTA_TYPE_UPDATE_APP)
 
void set_update_md5 (const char *md5)
 
OTAResponseTypes write (uint8_t *data, size_t len)
 
OTAResponseTypes end ()
 
void abort ()
 
bool supports_compression ()
 

Protected Member Functions

OTAResponseTypes validate_new_partition_table_ (uint32_t running_app_offset, size_t running_app_size, PartitionTablePlan &plan)
 
OTAResponseTypes update_partition_table ()
 
OTAResponseTypes register_and_validate_partition_table_part_ ()
 
OTAResponseTypes register_and_validate_bootloader_part_ ()
 
OTAResponseTypes prepare_bootloader_update_ (size_t image_size)
 
OTAResponseTypes setup_bootloader_staging_ ()
 
OTAResponseTypes finalize_bootloader_update_ (esp_err_t ota_end_err)
 
bool is_app_or_bootloader_update_ () const
 

Detailed Description

Definition at line 19 of file ota_backend_esp_idf.h.

Member Function Documentation

◆ abort()

void esphome::ota::IDFOTABackend::abort ( )

Definition at line 170 of file ota_backend_esp_idf.cpp.

◆ begin()

OTAResponseTypes esphome::ota::IDFOTABackend::begin ( size_t image_size,
ota::OTAType ota_type = ota::OTA_TYPE_UPDATE_APP )

Definition at line 19 of file ota_backend_esp_idf.cpp.

◆ end()

OTAResponseTypes esphome::ota::IDFOTABackend::end ( )

Definition at line 124 of file ota_backend_esp_idf.cpp.

◆ finalize_bootloader_update_()

OTAResponseTypes esphome::ota::IDFOTABackend::finalize_bootloader_update_ ( esp_err_t ota_end_err)
protected

Definition at line 93 of file ota_bootloader_esp_idf.cpp.

◆ is_app_or_bootloader_update_()

bool esphome::ota::IDFOTABackend::is_app_or_bootloader_update_ ( ) const
inlineprotected

Definition at line 51 of file ota_backend_esp_idf.h.

◆ prepare_bootloader_update_()

OTAResponseTypes esphome::ota::IDFOTABackend::prepare_bootloader_update_ ( size_t image_size)
protected

Definition at line 44 of file ota_bootloader_esp_idf.cpp.

◆ register_and_validate_bootloader_part_()

OTAResponseTypes esphome::ota::IDFOTABackend::register_and_validate_bootloader_part_ ( )
protected

Definition at line 16 of file ota_bootloader_esp_idf.cpp.

◆ register_and_validate_partition_table_part_()

OTAResponseTypes esphome::ota::IDFOTABackend::register_and_validate_partition_table_part_ ( )
protected

Definition at line 273 of file ota_partitions_esp_idf.cpp.

◆ set_update_md5()

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

Definition at line 89 of file ota_backend_esp_idf.cpp.

◆ setup_bootloader_staging_()

OTAResponseTypes esphome::ota::IDFOTABackend::setup_bootloader_staging_ ( )
protected

Definition at line 66 of file ota_bootloader_esp_idf.cpp.

◆ supports_compression()

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

Definition at line 26 of file ota_backend_esp_idf.h.

◆ update_partition_table()

OTAResponseTypes esphome::ota::IDFOTABackend::update_partition_table ( )
protected

Definition at line 168 of file ota_partitions_esp_idf.cpp.

◆ validate_new_partition_table_()

OTAResponseTypes esphome::ota::IDFOTABackend::validate_new_partition_table_ ( uint32_t running_app_offset,
size_t running_app_size,
PartitionTablePlan & plan )
protected

Definition at line 46 of file ota_partitions_esp_idf.cpp.

◆ write()

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

Definition at line 94 of file ota_backend_esp_idf.cpp.


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