mirror of
https://github.com/esphome/esphome.git
synced 2025-02-19 11:28:18 +00:00
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl> Co-authored-by: Sam Neirinck <git@samneirinck.com> Co-authored-by: David Buezas <dbuezas@users.noreply.github.com> Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com> Co-authored-by: Sam Neirinck <github@samneirinck.be> Co-authored-by: Péter Sárközi <xmisterhu@gmail.com> Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com>
25 lines
579 B
C++
25 lines
579 B
C++
#pragma once
|
|
#include "esphome/core/defines.h"
|
|
#ifdef USE_LIBRETINY
|
|
|
|
#include "ota_component.h"
|
|
#include "ota_backend.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
|