⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
magergar
Offline
Last seen:3 months 3 weeks ago
加入:2020-05-26 18:20
项目进度DA14531

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

PM_Dialog
Offline
Last seen:1 day 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi magergar,

Hi magergar,

Let me check it and I’ll get back to you.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:1 day 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi magergar,

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