OPEnSLab-OSU / Loom-V4

Open Source Internet Of Things Rapid Prototyping Framework For Environmental Sensing Applications
5 stars 1 forks source link

Changed how we handle the RTC alarm check if we didn't power on (NOTHING ELSE SHOULD BE MERGED UNTIL THIS IS COMPLETED) #102

Closed WL-Richards closed 5 months ago

WL-Richards commented 8 months ago

Before going to sleep we would always check the alarm to see if we should enter sleep mode or resample, however, if the device wasn't fully powered on (ie. tipping bucket tip). Attempting to access the RTC would likely result in a hang. So a check has been added to see if the device was actually powered on before calling the RTC methods. It needs to be tested.

WL-Richards commented 7 months ago

Bump I need someone to test this on a WeatherChimes device with a TippingBucket attached

WL-Richards commented 7 months ago

Parameters for success: WeatherChimes device can fall asleep and wake back up even when a tip occurs, in the interim. In addition test to see if when the interrupt for the next sample is triggered during the currently awake period of the device it should reschedule another interrupt.