Online=>offline

Ok so it’s just server.save() and server.load() that are exclusive to Agents?

Ok so it's just server.save() and server.load() that are exclusive to Agents?
Do they work already ?

Narrr… not yet
Think you can call then but won’t persist…

save/load are pretty close, and yes, agent-only. We’ll post when they’re rolled out.

Ok Implimented the code example from http://devwiki.electricimp.com/doku.php?id=electricimpapi:server:onunexpecteddisconnect

I got some reasons

  • Failed to connect to server
  • disconnect Wifi went away
  • Also saw some Agent disconnect/connect within a seconde

Then this only came back when power cycled it

Sat Jun 22 2013 19:55:25 GMT+0100 (GMT Daylight Time): agent: disconnect from imp
Sat Jun 22 2013 19:55:25 GMT+0100 (GMT Daylight Time): Power state: online=>offline
Sun Jun 23 2013 07:42:08 GMT+0100 (GMT Daylight Time): Power state: offline=>online
Sun Jun 23 2013 07:42:08 GMT+0100 (GMT Daylight Time): Agent: start SCADA Tank v1.0