ESPHome 2026.3.0
Loading...
Searching...
No Matches
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
9#elif defined(USE_ESP32)
10#include "ota_backend_esp_idf.h"
11#elif defined(USE_RP2040)
13#elif defined(USE_LIBRETINY)
15#elif defined(USE_HOST)
16#include "ota_backend_host.h"
17#else
18// Stub for static analysis when no platform is defined
19namespace esphome::ota {
21std::unique_ptr<StubOTABackend> make_ota_backend();
22} // namespace esphome::ota
23#endif
24
25namespace esphome::ota {
26using OTABackendPtr = decltype(make_ota_backend());
27} // namespace esphome::ota
decltype(make_ota_backend()) OTABackendPtr
std::unique_ptr< ArduinoLibreTinyOTABackend > make_ota_backend()