mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-05-06 21:32:14 +02:00
pruebas1
This commit is contained in:
@@ -48,7 +48,9 @@ namespace SLEEP_Utils {
|
||||
}
|
||||
|
||||
void startSleeping() {
|
||||
esp_sleep_enable_timer_wakeup(getSecondsToSleep() * 1000000); // 1 min = 60sec
|
||||
uint32_t timeToSleep = getSecondsToSleep();
|
||||
esp_sleep_enable_timer_wakeup(timeToSleep * 1000000); // 1 min = 60sec
|
||||
Serial.print("(Sleeping : "); Serial.print(timeToSleep); Serial.println("seconds)");
|
||||
delay(100);
|
||||
LoRa_Utils::wakeRadio();
|
||||
esp_light_sleep_start();
|
||||
|
||||
Reference in New Issue
Block a user