ESPHome  2024.7.2
Data Structures | Namespaces | Enumerations | Functions
ota_backend.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::ota::OTABackend
 
class  esphome::ota::OTAComponent
 
class  esphome::ota::OTAGlobalCallback
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::ota
 

Enumerations

enum  esphome::ota::OTAResponseTypes {
  esphome::ota::OTA_RESPONSE_OK = 0x00, esphome::ota::OTA_RESPONSE_REQUEST_AUTH = 0x01, 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_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_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
}
 

Functions

OTAGlobalCallback * esphome::ota::get_global_ota_callback ()
 
void esphome::ota::register_ota_platform (OTAComponent *ota_caller)
 
std::unique_ptr< ota::OTABackend > esphome::ota::make_ota_backend ()