ESPHome  2024.4.0
ota_backend.h
Go to the documentation of this file.
1 #pragma once
2 #include "ota_component.h"
3 
4 namespace esphome {
5 namespace ota {
6 
7 class OTABackend {
8  public:
9  virtual ~OTABackend() = default;
10  virtual OTAResponseTypes begin(size_t image_size) = 0;
11  virtual void set_update_md5(const char *md5) = 0;
12  virtual OTAResponseTypes write(uint8_t *data, size_t len) = 0;
13  virtual OTAResponseTypes end() = 0;
14  virtual void abort() = 0;
15  virtual bool supports_compression() = 0;
16 };
17 
18 } // namespace ota
19 } // namespace esphome
virtual void set_update_md5(const char *md5)=0
virtual OTAResponseTypes end()=0
virtual bool supports_compression()=0
virtual void abort()=0
virtual OTAResponseTypes write(uint8_t *data, size_t len)=0
virtual OTAResponseTypes begin(size_t image_size)=0
std::string size_t len
Definition: helpers.h:292
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
virtual ~OTABackend()=default