ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
restart.cpp
Go to the documentation of this file.
1#include "restart.h"
3#include "esphome/core/hal.h"
4#include "esphome/core/log.h"
5
6namespace esphome::restart {
7
8ESPHOME_LOG_TAG(TAG, "restart");
9
11 ESP_LOGI(TAG, "Restarting device");
12 // Let MQTT settle a bit
13 delay(100); // NOLINT
15}
16
17} // namespace esphome::restart
ESPHOME_LOG_TAG(TAG, "restart")
void restart_device()
Run by the restart button and switch.
Definition restart.cpp:10
void HOT delay(uint32_t ms)
Definition hal.cpp:85
Application App
Global storage of Application pointer - only one Application can exist.