ESPHome 2026.3.0
Loading...
Searching...
No Matches
ota_backend_host.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_HOST
3#include "ota_backend.h"
4
5namespace esphome::ota {
6
10class HostOTABackend final {
11 public:
12 OTAResponseTypes begin(size_t image_size);
13 void set_update_md5(const char *md5);
14 OTAResponseTypes write(uint8_t *data, size_t len);
16 void abort();
17 bool supports_compression() { return false; }
18};
19
20std::unique_ptr<HostOTABackend> make_ota_backend();
21
22} // namespace esphome::ota
23#endif
Stub OTA backend for host platform - allows compilation but does not implement OTA.
OTAResponseTypes write(uint8_t *data, size_t len)
OTAResponseTypes begin(size_t image_size)
void set_update_md5(const char *md5)
std::unique_ptr< ArduinoLibreTinyOTABackend > make_ota_backend()
std::string size_t len
Definition helpers.h:892