ESPHome  2024.12.2
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 
5 #include "esphome/core/defines.h"
6 
7 namespace esphome {
8 namespace ota {
9 
11  public:
12  OTAResponseTypes begin(size_t image_size) override;
13  void set_update_md5(const char *md5) override;
14  OTAResponseTypes write(uint8_t *data, size_t len) override;
15  OTAResponseTypes end() override;
16  void abort() override;
17  bool supports_compression() override { return false; }
18 };
19 
20 } // namespace ota
21 } // namespace esphome
22 
23 #endif // USE_LIBRETINY
OTAResponseTypes begin(size_t image_size) override
std::string size_t len
Definition: helpers.h:293
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
OTAResponseTypes write(uint8_t *data, size_t len) override