ESPHome 2026.5.1
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
8static const char *const TAG = "restart.button";
9
11 ESP_LOGI(TAG, "Restarting device");
12 // Let MQTT settle a bit
13 delay(100); // NOLINT
15}
16void RestartButton::dump_config() { LOG_BUTTON("", "Restart Button", this); }
17
18} // namespace esphome::restart
void HOT delay(uint32_t ms)
Definition hal.cpp:85
Application App
Global storage of Application pointer - only one Application can exist.