9 static const char *
const TAG =
"safe_mode_switch";
18 ESP_LOGI(TAG,
"Restarting device in safe mode...");
void write_state(bool state) override
void dump_config() override
Application App
Global storage of Application pointer - only one Application can exist.
void set_ota(ota::OTAComponent *ota)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
void set_safe_mode_pending(const bool &pending)
Set to true if the next startup will enter safe mode.
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.
OTAComponent provides a simple way to integrate Over-the-Air updates into your app using ArduinoOTA...
void IRAM_ATTR HOT delay(uint32_t ms)