ESPHome 2026.1.3
Loading...
Searching...
No Matches
ota_backend_host.cpp
Go to the documentation of this file.
1#ifdef USE_HOST
2#include "ota_backend_host.h"
3
5
6namespace esphome::ota {
7
8// Stub implementation - OTA is not supported on host platform.
9// All methods return error codes to allow compilation of configs with OTA triggers.
10
11std::unique_ptr<ota::OTABackend> make_ota_backend() { return make_unique<ota::HostOTABackend>(); }
12
14
15void HostOTABackend::set_update_md5(const char *expected_md5) {}
16
18
20
22
23} // namespace esphome::ota
24#endif
OTAResponseTypes write(uint8_t *data, size_t len) override
void set_update_md5(const char *md5) override
OTAResponseTypes begin(size_t image_size) override
OTAResponseTypes end() override
std::unique_ptr< ota::OTABackend > make_ota_backend()
@ OTA_RESPONSE_ERROR_WRITING_FLASH
Definition ota_backend.h:31
@ OTA_RESPONSE_ERROR_UPDATE_END
Definition ota_backend.h:32
@ OTA_RESPONSE_ERROR_UPDATE_PREPARE
Definition ota_backend.h:29
std::string size_t len
Definition helpers.h:595