ESPHome
2024.3.1
esphome
esphome
components
ota
ota_backend_arduino_esp8266.h
Go to the documentation of this file.
1
#pragma once
2
#include "
esphome/core/defines.h
"
3
#ifdef USE_ARDUINO
4
#ifdef USE_ESP8266
5
6
#include "
ota_component.h
"
7
#include "
ota_backend.h
"
8
#include "
esphome/core/macros.h
"
9
10
namespace
esphome
{
11
namespace
ota {
12
13
class
ArduinoESP8266OTABackend
:
public
OTABackend
{
14
public
:
15
OTAResponseTypes
begin
(
size_t
image_size)
override
;
16
void
set_update_md5
(
const
char
*md5)
override
;
17
OTAResponseTypes
write
(uint8_t *data,
size_t
len
)
override
;
18
OTAResponseTypes
end
()
override
;
19
void
abort
()
override
;
20
#if USE_ARDUINO_VERSION_CODE >= VERSION_CODE(2, 7, 0)
21
bool
supports_compression
()
override
{
return
true
; }
22
#else
23
bool
supports_compression
()
override
{
return
false
; }
24
#endif
25
};
26
27
}
// namespace ota
28
}
// namespace esphome
29
30
#endif
31
#endif
esphome::ota::OTAResponseTypes
OTAResponseTypes
Definition:
ota_component.h:12
esphome::ota::ArduinoESP8266OTABackend::set_update_md5
void set_update_md5(const char *md5) override
Definition:
ota_backend_arduino_esp8266.cpp:34
ota_component.h
macros.h
esphome::ota::ArduinoESP8266OTABackend::begin
OTAResponseTypes begin(size_t image_size) override
Definition:
ota_backend_arduino_esp8266.cpp:15
ota_backend.h
defines.h
esphome::ota::OTABackend
Definition:
ota_backend.h:7
esphome::ota::ArduinoESP8266OTABackend::end
OTAResponseTypes end() override
Definition:
ota_backend_arduino_esp8266.cpp:44
esphome::len
std::string size_t len
Definition:
helpers.h:292
esphome::ota::ArduinoESP8266OTABackend::write
OTAResponseTypes write(uint8_t *data, size_t len) override
Definition:
ota_backend_arduino_esp8266.cpp:36
esphome
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition:
a01nyub.cpp:7
esphome::ota::ArduinoESP8266OTABackend::abort
void abort() override
Definition:
ota_backend_arduino_esp8266.cpp:50
esphome::ota::ArduinoESP8266OTABackend
Definition:
ota_backend_arduino_esp8266.h:13
esphome::ota::ArduinoESP8266OTABackend::supports_compression
bool supports_compression() override
Definition:
ota_backend_arduino_esp8266.h:21
Generated by
1.8.13