ESPHome 2025.5.0
Loading...
Searching...
No Matches
ota_backend.cpp
Go to the documentation of this file.
1#include "ota_backend.h"
2
3namespace esphome {
4namespace ota {
5
6#ifdef USE_OTA_STATE_CALLBACK
7OTAGlobalCallback *global_ota_callback{nullptr}; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
8
10 if (global_ota_callback == nullptr) {
11 global_ota_callback = new OTAGlobalCallback(); // NOLINT(cppcoreguidelines-owning-memory)
12 }
14}
15
17#endif
18
19} // namespace ota
20} // namespace esphome
void register_ota(OTAComponent *ota_caller)
Definition ota_backend.h:77
void register_ota_platform(OTAComponent *ota_caller)
OTAGlobalCallback * get_global_ota_callback()
OTAGlobalCallback * global_ota_callback
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7