mirror of
https://github.com/esphome/esphome.git
synced 2025-01-10 14:43:17 +01:00
24 lines
603 B
C++
24 lines
603 B
C++
#pragma once
|
|
#include "esphome/core/defines.h"
|
|
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
|
|
|
|
#include "ota_component.h"
|
|
#include "ota_backend.h"
|
|
|
|
namespace esphome {
|
|
namespace ota {
|
|
|
|
class ArduinoESP32OTABackend : 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_ESP32_FRAMEWORK_ARDUINO
|