ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
ota_backend.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::ota::OTAStateListener
 Listener interface for OTA state changes. More...
 
class  esphome::ota::OTAComponent
 
class  esphome::ota::OTAGlobalStateListener
 Listener interface for global OTA state changes (includes OTA component pointer). More...
 
class  esphome::ota::OTAGlobalCallback
 Global callback that aggregates OTA state from all OTA components. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::ota
 

Enumerations

enum  esphome::ota::OTAResponseTypes {
  esphome::ota::OTA_RESPONSE_OK = 0x00 , esphome::ota::OTA_RESPONSE_REQUEST_AUTH = 0x01 , esphome::ota::OTA_RESPONSE_REQUEST_SHA256_AUTH = 0x02 , esphome::ota::OTA_RESPONSE_HEADER_OK = 0x40 ,
  esphome::ota::OTA_RESPONSE_AUTH_OK = 0x41 , esphome::ota::OTA_RESPONSE_UPDATE_PREPARE_OK = 0x42 , esphome::ota::OTA_RESPONSE_BIN_MD5_OK = 0x43 , esphome::ota::OTA_RESPONSE_RECEIVE_OK = 0x44 ,
  esphome::ota::OTA_RESPONSE_UPDATE_END_OK = 0x45 , esphome::ota::OTA_RESPONSE_SUPPORTS_COMPRESSION = 0x46 , esphome::ota::OTA_RESPONSE_CHUNK_OK = 0x47 , esphome::ota::OTA_RESPONSE_FEATURE_FLAGS = 0x48 ,
  esphome::ota::OTA_RESPONSE_ERROR_MAGIC = 0x80 , esphome::ota::OTA_RESPONSE_ERROR_UPDATE_PREPARE = 0x81 , esphome::ota::OTA_RESPONSE_ERROR_AUTH_INVALID = 0x82 , esphome::ota::OTA_RESPONSE_ERROR_WRITING_FLASH = 0x83 ,
  esphome::ota::OTA_RESPONSE_ERROR_UPDATE_END = 0x84 , esphome::ota::OTA_RESPONSE_ERROR_INVALID_BOOTSTRAPPING = 0x85 , esphome::ota::OTA_RESPONSE_ERROR_WRONG_CURRENT_FLASH_CONFIG = 0x86 , esphome::ota::OTA_RESPONSE_ERROR_WRONG_NEW_FLASH_CONFIG = 0x87 ,
  esphome::ota::OTA_RESPONSE_ERROR_ESP8266_NOT_ENOUGH_SPACE = 0x88 , esphome::ota::OTA_RESPONSE_ERROR_ESP32_NOT_ENOUGH_SPACE = 0x89 , esphome::ota::OTA_RESPONSE_ERROR_NO_UPDATE_PARTITION = 0x8A , esphome::ota::OTA_RESPONSE_ERROR_MD5_MISMATCH = 0x8B ,
  esphome::ota::OTA_RESPONSE_ERROR_RP2040_NOT_ENOUGH_SPACE = 0x8C , esphome::ota::OTA_RESPONSE_ERROR_SIGNATURE_INVALID = 0x8D , esphome::ota::OTA_RESPONSE_ERROR_UNSUPPORTED_OTA_TYPE = 0x8E , esphome::ota::OTA_RESPONSE_ERROR_PARTITION_TABLE_VERIFY = 0x8F ,
  esphome::ota::OTA_RESPONSE_ERROR_PARTITION_TABLE_UPDATE = 0x90 , esphome::ota::OTA_RESPONSE_ERROR_BOOTLOADER_VERIFY = 0x91 , esphome::ota::OTA_RESPONSE_ERROR_BOOTLOADER_UPDATE = 0x92 , esphome::ota::OTA_RESPONSE_ERROR_UNKNOWN = 0xFF
}
 
enum  esphome::ota::OTAState {
  esphome::ota::OTA_COMPLETED = 0 , esphome::ota::OTA_STARTED , esphome::ota::OTA_IN_PROGRESS , esphome::ota::OTA_ABORT ,
  esphome::ota::OTA_ERROR
}
 
enum  esphome::ota::OTAType : uint8_t { esphome::ota::OTA_TYPE_UPDATE_APP = 0x00 , esphome::ota::OTA_TYPE_UPDATE_PARTITION_TABLE = 0x01 , esphome::ota::OTA_TYPE_UPDATE_BOOTLOADER = 0x02 }
 

Functions

OTAGlobalCallbackesphome::ota::get_global_ota_callback ()