ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
ota
ota_backend_arduino_libretiny.h
Go to the documentation of this file.
1
#pragma once
2
#ifdef USE_LIBRETINY
3
#include "
ota_backend.h
"
4
5
#include "
esphome/core/defines.h
"
6
7
namespace
esphome
{
8
namespace
ota {
9
10
class
ArduinoLibreTinyOTABackend
:
public
OTABackend
{
11
public
:
12
OTAResponseTypes
begin
(
size_t
image_size)
override
;
13
void
set_update_md5
(
const
char
*md5)
override
;
14
OTAResponseTypes
write
(uint8_t *data,
size_t
len
)
override
;
15
OTAResponseTypes
end
()
override
;
16
void
abort
()
override
;
17
bool
supports_compression
()
override
{
return
false
; }
18
};
19
20
}
// namespace ota
21
}
// namespace esphome
22
23
#endif
// USE_LIBRETINY
esphome::ota::ArduinoLibreTinyOTABackend
Definition
ota_backend_arduino_libretiny.h:10
esphome::ota::ArduinoLibreTinyOTABackend::set_update_md5
void set_update_md5(const char *md5) override
Definition
ota_backend_arduino_libretiny.cpp:32
esphome::ota::ArduinoLibreTinyOTABackend::end
OTAResponseTypes end() override
Definition
ota_backend_arduino_libretiny.cpp:46
esphome::ota::ArduinoLibreTinyOTABackend::abort
void abort() override
Definition
ota_backend_arduino_libretiny.cpp:57
esphome::ota::ArduinoLibreTinyOTABackend::supports_compression
bool supports_compression() override
Definition
ota_backend_arduino_libretiny.h:17
esphome::ota::ArduinoLibreTinyOTABackend::begin
OTAResponseTypes begin(size_t image_size) override
Definition
ota_backend_arduino_libretiny.cpp:17
esphome::ota::ArduinoLibreTinyOTABackend::write
OTAResponseTypes write(uint8_t *data, size_t len) override
Definition
ota_backend_arduino_libretiny.cpp:34
esphome::ota::OTABackend
Definition
ota_backend.h:51
defines.h
esphome::ota::OTAResponseTypes
OTAResponseTypes
Definition
ota_backend.h:14
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
esphome::len
std::string size_t len
Definition
helpers.h:301
ota_backend.h
Generated by
1.12.0