ESPHome  2024.10.2
ota_backend_arduino_rp2040.h
Go to the documentation of this file.
1 #pragma once
2 #ifdef USE_ARDUINO
3 #ifdef USE_RP2040
4 #include "ota_backend.h"
5 
6 #include "esphome/core/defines.h"
7 #include "esphome/core/macros.h"
8 
9 namespace esphome {
10 namespace ota {
11 
13  public:
14  OTAResponseTypes begin(size_t image_size) override;
15  void set_update_md5(const char *md5) override;
16  OTAResponseTypes write(uint8_t *data, size_t len) override;
17  OTAResponseTypes end() override;
18  void abort() override;
19  bool supports_compression() override { return false; }
20 };
21 
22 } // namespace ota
23 } // namespace esphome
24 
25 #endif // USE_RP2040
26 #endif // USE_ARDUINO
OTAResponseTypes write(uint8_t *data, size_t len) override
std::string size_t len
Definition: helpers.h:292
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
OTAResponseTypes begin(size_t image_size) override