I've been thinking how to program a 24hour schedule on the module,
for example dimming (changing the PWM) of a light depending on the hour
Maybe I could use an RTC timer? is there any example of it's functionality?
I would like to execute a function every hour while I'm reading a sensor every 5 min maybe
does that mean that I need 2 separate timers?
It is posible to have some kind of "loop" to check sensors using timers maybe
since I know a common loop doesn't work with the bluetooth and automatically disconects
Device:
Hi magergar,
Let me check it and I’ll get back to you.
Thanks, PM_Dialog
Hi magergar,
Please take a look at prox_reporter example of the SDK and search for CFG_DEEP_SLEEP_WAKEUP_RTC macro. If it is defined, an RTC interrupt triggers the system to wake up from deep sleep after 10 seconds. So, you could modify the configure_rtc_wakeup() in order to get an interrupt according to your requirement.
Thanks, PM_Dialog