ESPHome  2022.8.0
ota_backend_arduino_esp32.h
Go to the documentation of this file.
1 #pragma once
2 #include "esphome/core/defines.h"
3 #ifdef USE_ESP32_FRAMEWORK_ARDUINO
4 
5 #include "ota_component.h"
6 #include "ota_backend.h"
7 
8 namespace esphome {
9 namespace ota {
10 
12  public:
13  OTAResponseTypes begin(size_t image_size) override;
14  void set_update_md5(const char *md5) override;
15  OTAResponseTypes write(uint8_t *data, size_t len) override;
16  OTAResponseTypes end() override;
17  void abort() override;
18  bool supports_compression() override { return false; }
19 };
20 
21 } // namespace ota
22 } // namespace esphome
23 
24 #endif // USE_ESP32_FRAMEWORK_ARDUINO
OTAResponseTypes begin(size_t image_size) override
void set_update_md5(const char *md5) override
OTAResponseTypes write(uint8_t *data, size_t len) override
std::string size_t len
Definition: helpers.h:278
Definition: a4988.cpp:4