7 namespace factory_reset {
9 static const char *
const TAG =
"factory_reset.switch";
17 ESP_LOGI(TAG,
"Resetting to factory defaults...");
void write_state(bool state) override
ESPPreferences * global_preferences
virtual bool reset()=0
Forget all unsaved changes and re-initialize the permanent preferences storage.
Application App
Global storage of Application pointer - only one Application can exist.
Implementation of SPI Controller mode.
void dump_config() override
void publish_state(bool state)
Publish a state to the front-end from the back-end.
bool state
The current reported state of the binary sensor.
void IRAM_ATTR HOT delay(uint32_t ms)