mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
f46c499c4e
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
24 lines
552 B
C++
24 lines
552 B
C++
#pragma once
|
|
#ifdef USE_LIBRETINY
|
|
#include "ota_backend.h"
|
|
|
|
#include "esphome/core/defines.h"
|
|
|
|
namespace esphome {
|
|
namespace ota {
|
|
|
|
class ArduinoLibreTinyOTABackend : public OTABackend {
|
|
public:
|
|
OTAResponseTypes begin(size_t image_size) override;
|
|
void set_update_md5(const char *md5) override;
|
|
OTAResponseTypes write(uint8_t *data, size_t len) override;
|
|
OTAResponseTypes end() override;
|
|
void abort() override;
|
|
bool supports_compression() override { return false; }
|
|
};
|
|
|
|
} // namespace ota
|
|
} // namespace esphome
|
|
|
|
#endif // USE_LIBRETINY
|