Notifications when a device is offline

I have an Argon device that is in an area with spotty WiFi, is there a good way that I can have the Particle Console or the device send a notification to me or my team when the device is offline?

You can subscribe to the spart/status event which will have as the event data either online or offline. You can do this using Logic or webhook for example.

The caveat is that if the device goes offline unexpectedly such as because of connectivity issues, the offline will not be issued until 2x the keep-alive value. For the Argon, the keep-alive is 25 seconds, so the latency to offline isn't too bad. For cellular, devices, however, the keep-alive is 23 minutes, so you won't get an offline notification for at least 46 minutes.

2 Likes

How do I do that? Is that a setting in the Particle Console or is that code I need to deploy to the device?

You will net to set up logic or a webhook. You will also need an external service for notifications such as Slack, PagerDuty, etc.. There are several in the integratios gallery.

1 Like