Offline/online events inconsistent

When a device connects the spark/offline and spark/online events are sent inconsistently.

Sometimes only an online event is sent.

Sometimes an offline event is followed by an online event 1ms later.

Sometimes only an offline event is sent!

In this spark subscribe spark log, every empty line is when I hit reset on a Photon connected to the cloud.

{"name":"spark/status","data":"online","ttl":"60","published_at":"2015-10-01T15:48:11.391Z","coreid":"XXXX"}

{"name":"spark/status","data":"offline","ttl":"60","published_at":"2015-10-01T15:48:23.477Z","coreid":"XXXX"}
{"name":"spark/status","data":"online","ttl":"60","published_at":"2015-10-01T15:48:23.475Z","coreid":"XXXX"}

{"name":"spark/status","data":"online","ttl":"60","published_at":"2015-10-01T15:48:32.161Z","coreid":"XXXX"}

{"name":"spark/status","data":"offline","ttl":"60","published_at":"2015-10-01T15:48:41.480Z","coreid":"XXXX"}
{"name":"spark/status","data":"online","ttl":"60","published_at":"2015-10-01T15:48:41.483Z","coreid":"XXXX"}

{"name":"spark/status","data":"offline","ttl":"60","published_at":"2015-10-01T15:48:48.845Z","coreid":"XXXX"}
{"name":"spark/status","data":"online","ttl":"60","published_at":"2015-10-01T15:48:48.845Z","coreid":"XXXX"}

{"name":"spark/status","data":"offline","ttl":"60","published_at":"2015-10-01T15:48:56.528Z","coreid":"XXXX"}

{"name":"spark/status","data":"online","ttl":"60","published_at":"2015-10-01T15:49:07.361Z","coreid":"XXXX"}

(Is this the best place to report cloud API bugs?)

FWIW - my experience is similar in that I see almost all the online events, but only some subset of the offline events - last time I measured the behaviour, it was a far smaller subset than the log pasted above - I could re-test if the cloud behaviour has been updated and more data is required.

I would be interested in comparing the off-line event yield for controlled offline events, as opposed to outright resets.

I have observed the same thing.