ESPHome 2025.5.0
Loading...
Searching...
No Matches
factory_reset_button.cpp
Go to the documentation of this file.
2#include "esphome/core/hal.h"
3#include "esphome/core/log.h"
5
6namespace esphome {
7namespace factory_reset {
8
9static const char *const TAG = "factory_reset.button";
10
11void FactoryResetButton::dump_config() { LOG_BUTTON("", "Factory Reset Button", this); }
13 ESP_LOGI(TAG, "Resetting to factory defaults...");
14 // Let MQTT settle a bit
15 delay(100); // NOLINT
18}
19
20} // namespace factory_reset
21} // namespace esphome
virtual bool reset()=0
Forget all unsaved changes and re-initialize the permanent preferences storage.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
ESPPreferences * global_preferences
void IRAM_ATTR HOT delay(uint32_t ms)
Definition core.cpp:28
Application App
Global storage of Application pointer - only one Application can exist.