I’m using the Electron with Asset Tracker v2, and am currently having a lot of success with the AssetTrackerRK library. I am broadcasting GPS coordinates at a regular interval in an environment with water, so the device is screwed into the waterproof case while in use. I would like to use POST functions from a web app to facilitate power saving functions when the operator is not actively using the GPS broadcast throughout the day (i.e.: let the operator tell the device when to broadcast, and save power when it’s not needed). The battery would be recharged at the end of the day. Based on other forum topics, I understand that none of the sleep modes will work because the device is not awake to listen for a function call.
Here are the ideas I’ve come up with after reading lots of forum posts:
- Use a function to start/stop publishing events (will this save power?)
- Turn on/off the GPS module only (will this save power?)
- An Idle mode is referenced in @rickkas7’s article on sleep modes, but can’t find documentation on it…
- Use sleep mode with a wakeup interval (say… 10 minutes), if a POST function call has not set a variable in the meantime then go back to sleep (and set operator expectations that there could be up to a 10 minute lag for the device to wake up)
Is there a smarter way to accomplish this?