ESPHome 2026.3.0
Loading...
Searching...
No Matches
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
8
9namespace esphome {
10namespace ota {
11
13 public:
14 OTAResponseTypes begin(size_t image_size);
15 void set_update_md5(const char *md5);
16 OTAResponseTypes write(uint8_t *data, size_t len);
18 void abort();
19 bool supports_compression() { return false; }
20
21 private:
22 bool md5_set_{false};
23};
24
25std::unique_ptr<ArduinoRP2040OTABackend> make_ota_backend();
26
27} // namespace ota
28} // namespace esphome
29
30#endif // USE_RP2040
31#endif // USE_ARDUINO
OTAResponseTypes write(uint8_t *data, size_t len)
OTAResponseTypes begin(size_t image_size)
std::unique_ptr< ArduinoLibreTinyOTABackend > make_ota_backend()
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
std::string size_t len
Definition helpers.h:892