I’ll be diving further into this tomorrow, but thought to ask folks who may have already come up with a concise way to do it: I’d like to put a device to sleep until 7:59am everyday. I assume I’ll be using the built in Time library functions in combination with one of the various sleep modes.
Traditionally I always just used a duration of milliseconds to time things, but I’m integrating with a secondary device that is working off a standard 12 hour clock, so it would be nice to just pull the time of day from the Particle Cloud, and simply sleep / wake based on that.
Is the simplest way to pull the time of day, calculate number of milliseconds until 7:59, and then sleep for that duration? If so, an example of utilizing the Time library to do something like this would save some time…though I do enjoy the journey of trial and error.