When a Lead Scout comes online, it should get-and-send reports from all Scouts. #68

Open
jingman opened this Issue Feb 21, 2014 · 7 comments

Projects

None yet

3 participants

@jingman

No description provided.

@soldair
Pinoccio member

im working on having all of the last valid state in api at all times. this will be very useful.

@quartzjer

Instead of having this hard-coded into the sketch, can we have HQ do this on connect? As soon as a new lead scout is auth'd, carlo can send it a "report" command for every scout that is in it's troop (only the online ones would actually respond).

We're going to have very little control over updating the sketches, so as much logic as we can keep dynamic and HQ-driven the better :)

@jingman

Instead of having this hard-coded into the sketch, can we have HQ do this on connect?

Yep, makes sense. Is there a special "I'm online" event?

@jingman

I suppose I can just watch for the uptime or scout report, and see if I've got that troop/scout currently marked as offline.

@quartzjer

Inside carlo where the token is validated it knows the "online", this logic would be best implemented there so that everything is always consistent methinks :)

@jingman

That's true, and that's how I hold the initial state of "online", but when a LS boots up, it just sends report (all reports), so I just see those reports come in, I don't see a separate "this LS just auth'd" event/report.

@soldair
Pinoccio member

ill play around with syncing scout and troop state in api server side and let you know if there are any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment