WildernessLabs / Meadow_Issues

Public repo for bugs and issues with Meadow
15 stars 0 forks source link

Add "wake reason" to Meadow.OS GPIO interrupt handling #415

Open ctacke opened 11 months ago

ctacke commented 11 months ago

If I configure a wake interrupt, let's say for argument, with a timer expiration of one hour. When my app wakes, I don't actually know if it was due to the interrupt, or due to the timer elapsing. I need to be able to notify the app of the reason we've awakened.

Peter-Moody commented 11 months ago

This will be implemented by creating a new function which Meadow.Core can query. This function will return the reason for the last wakeup, either wake from sleep or wake from GPIO interrupt.