ESPHome  2024.5.5
ota_backend_arduino_rp2040.h
Go to the documentation of this file.
1 #pragma once
2 #include "esphome/core/defines.h"
3 #ifdef USE_ARDUINO
4 #ifdef USE_RP2040
5 
6 #include "esphome/core/macros.h"
7 #include "ota_backend.h"
8 #include "ota_component.h"
9 
10 namespace esphome {
11 namespace ota {
12 
14  public:
15  OTAResponseTypes begin(size_t image_size) override;
16  void set_update_md5(const char *md5) override;
17  OTAResponseTypes write(uint8_t *data, size_t len) override;
18  OTAResponseTypes end() override;
19  void abort() override;
20  bool supports_compression() override { return false; }
21 };
22 
23 } // namespace ota
24 } // namespace esphome
25 
26 #endif // USE_RP2040
27 #endif // USE_ARDUINO
OTAResponseTypes write(uint8_t *data, size_t len) override
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
OTAResponseTypes begin(size_t image_size) override