Event for when spark connects?

Is there an event that I can listen to for when a spark connects to the cloud?

If you are using Chrome, you can easily find this out yourself by entering this “URL”

view-source:https://api.spark.io/v1/devices/YOUR_CORE_ID/events/?access_token=YOUR_ACCESS_TOKEN

As far as I remember there is, but I can’t tell you at the mo’

Edit: Got it

event: spark/status
data: {"data":"online","ttl":"60","published_at":"2015-01-13T14:03:29.997Z","coreid":"YOUR_CORE_ID"}
1 Like