Reboot using deepsleep

This commit is contained in:
fvanroie 2021-05-12 09:33:56 +02:00
parent 81850a52ad
commit 6e758a460f

View File

@ -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()