mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Reboot using deepsleep
This commit is contained in:
parent
81850a52ad
commit
6e758a460f
@ -115,7 +115,9 @@ Esp32Device::Esp32Device()
|
|||||||
|
|
||||||
void Esp32Device::reboot()
|
void Esp32Device::reboot()
|
||||||
{
|
{
|
||||||
ESP.restart();
|
esp_sleep_enable_timer_wakeup(50 * 1000);
|
||||||
|
esp_deep_sleep_start();
|
||||||
|
// ESP.restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Esp32Device::show_info()
|
void Esp32Device::show_info()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user