Why RTC.alarm() not available on ESP32 , have some difficult point ?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
water
Posts: 75
Joined: Sun Sep 24, 2017 9:16 am

Why RTC.alarm() not available on ESP32 , have some difficult point ?

Post by water » Tue Apr 02, 2019 6:10 pm

Why RTC.alarm() not available on ESP32 , have some difficult point ?
:?:

flusflas
Posts: 1
Joined: Sun Jun 14, 2020 1:43 am

Re: Why RTC.alarm() not available on ESP32 , have some difficult point ?

Post by flusflas » Sun Jun 14, 2020 1:51 am

I have the same question. This and other functions as irq() or now() are documented, but ESP32 port doesn't include them.

PM-TPI
Posts: 75
Joined: Fri Jun 28, 2019 3:09 pm

Re: Why RTC.alarm() not available on ESP32 , have some difficult point ?

Post by PM-TPI » Tue Aug 25, 2020 9:23 pm

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.

Post Reply