lab11 / PlugWatch

Sensing power outages with custom hardware
http://grid.watch/
MIT License
3 stars 2 forks source link

Timestamps when Cloud Publishing #9

Open mattpodolsky opened 6 years ago

mattpodolsky commented 6 years ago

Capture time both at the start of each sensing cycle and at the end all sensors are read, before the Publish/SD logging is done. Publish and log both or send 1 plus the elapsed time difference.

Also consider using epoch seconds instead of ISO8601 FULL format for Publishes to save message space and bandwidth. Particle's Cloud API will already supply human-readable ISO 8601 cloud timestamps that will help for debugging.