ESPHome
2026.3.0
Loading...
Searching...
No Matches
esphome
components
ota
ota_backend_factory.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ota_backend.h
"
4
5
#include <memory>
6
7
#ifdef USE_ESP8266
8
#include "
ota_backend_esp8266.h
"
9
#elif defined(USE_ESP32)
10
#include "
ota_backend_esp_idf.h
"
11
#elif defined(USE_RP2040)
12
#include "
ota_backend_arduino_rp2040.h
"
13
#elif defined(USE_LIBRETINY)
14
#include "
ota_backend_arduino_libretiny.h
"
15
#elif defined(USE_HOST)
16
#include "
ota_backend_host.h
"
17
#else
18
// Stub for static analysis when no platform is defined
19
namespace
esphome::ota
{
20
struct
StubOTABackend
{};
21
std::unique_ptr<StubOTABackend>
make_ota_backend
();
22
}
// namespace esphome::ota
23
#endif
24
25
namespace
esphome::ota
{
26
using
OTABackendPtr
=
decltype
(
make_ota_backend
());
27
}
// namespace esphome::ota
esphome::ota
Definition
automation.h:8
esphome::ota::OTABackendPtr
decltype(make_ota_backend()) OTABackendPtr
Definition
ota_backend_factory.h:26
esphome::ota::make_ota_backend
std::unique_ptr< ArduinoLibreTinyOTABackend > make_ota_backend()
Definition
ota_backend_arduino_libretiny.cpp:15
ota_backend.h
ota_backend_arduino_libretiny.h
ota_backend_arduino_rp2040.h
ota_backend_esp8266.h
ota_backend_esp_idf.h
ota_backend_host.h
esphome::ota::StubOTABackend
Definition
ota_backend_factory.h:20
Generated by
1.12.0