ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
ota_backend_arduino_libretiny.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_LIBRETINY
3#include "ota_backend.h"
4
6
7namespace esphome::ota {
8
10 public:
11 OTAResponseTypes begin(size_t image_size);
12 void set_update_md5(const char *md5);
13 OTAResponseTypes write(uint8_t *data, size_t len);
15 void abort();
16 bool supports_compression() { return false; }
17
18 private:
19 bool md5_set_{false};
20};
21
22std::unique_ptr<ArduinoLibreTinyOTABackend> make_ota_backend();
23
24} // namespace esphome::ota
25#endif // USE_LIBRETINY
OTAResponseTypes write(uint8_t *data, size_t len)
std::unique_ptr< ArduinoLibreTinyOTABackend > make_ota_backend()
std::string size_t len
Definition helpers.h:1045