Why RTC.alarm() not available on ESP32 , have some difficult point ?
Why RTC.alarm() not available on ESP32 , have some difficult point ?
Re: Why RTC.alarm() not available on ESP32 , have some difficult point ?
I have the same question. This and other functions as irq() or now() are documented, but ESP32 port doesn't include them.
Re: Why RTC.alarm() not available on ESP32 , have some difficult point ?
Without RTC alarm how can I wake from lightsleep every 60sec ???
Currently I'm doing a Bluetooth scan every 60 seconds...
tm.init(period=60_000, mode=Timer.PERIODIC, callback=ble)
Scan takes < 10 sec then waits for interrupt to go again.
I get a very accurate timestamps.
But I like to be in a sleep mode during those other ~ 50sec to save power.
There must be a method to PERIODICALLY wake from lightsleep/deepsleep every X sec/msec.
This is critical to my project.
Currently I'm doing a Bluetooth scan every 60 seconds...
tm.init(period=60_000, mode=Timer.PERIODIC, callback=ble)
Scan takes < 10 sec then waits for interrupt to go again.
I get a very accurate timestamps.
But I like to be in a sleep mode during those other ~ 50sec to save power.
There must be a method to PERIODICALLY wake from lightsleep/deepsleep every X sec/msec.
This is critical to my project.