ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
restart_button.cpp
Go to the documentation of this file.
1#include "restart_button.h"
3#include "esphome/core/hal.h"
4#include "esphome/core/log.h"
5
6namespace esphome::restart {
7
8ESPHOME_LOG_TAG(TAG, "restart.button");
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.button")
void restart_device()
Run by the restart button.
void HOT delay(uint32_t ms)
Definition hal.cpp:85
Application App
Global storage of Application pointer - only one Application can exist.