ESPHome 2025.5.0
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 {
7namespace restart {
8
9static const char *const TAG = "restart.button";
10
12 ESP_LOGI(TAG, "Restarting device...");
13 // Let MQTT settle a bit
14 delay(100); // NOLINT
16}
17void RestartButton::dump_config() { LOG_BUTTON("", "Restart Button", this); }
18
19} // namespace restart
20} // namespace esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
void IRAM_ATTR HOT delay(uint32_t ms)
Definition core.cpp:28
Application App
Global storage of Application pointer - only one Application can exist.