lab11 / grid-watch

Grid watch is a system for monitoring the state of the power grid using just smart phones.
2 stars 2 forks source link

Queue needs to have backing store #7

Open ppannuto opened 10 years ago

ppannuto commented 10 years ago

Queued packets are only stored in a queue in RAM, which could be lost in the face of a [phone] power outage with a long delay in network connectivity. The queue should write out the permanent storage from time to time [or on low battery, or w/e]

bradjc commented 10 years ago

On android the events themselves are recorded to a file already.

ppannuto commented 10 years ago

Does this file track whether the alert was actually sent?

GW should scan through this file on startup and re-populate its send queue with any that previously failed to send.

On February 3, 2014 at 13:33:56, Brad Campbell (notifications@github.com) wrote:

On android the events themselves are recorded to a file already.

— Reply to this email directly or view it on GitHub.