LosantPingPong: End-to-end Losant Connectivity Test

Very clever idea, Yoursunny.

Thanks for the update on the fix Brandon. FWIW, I’ve experienced almost no disconnects this week (last was 5 days ago).

That being said, if anyone would like to be informed when the board has been disconnected for longer than a configurable amount of time (power/internet outage, etc), my “heartbeat” solution for the workflow may work well for you:

The basic logic is that the Heartbeat gets reset every time a message is received by the workflow from the board, or if the board connects. This should happen at least every 15 seconds if all is well. Every minute a separate process runs which decrements 1 from the Heartbeat value. If the value is 0, it sends notifications to phone and email and then turns off further notifications until the unit comes back to life.

In my case I set the heartbeat value to 10 so the device is allowed to be offline for up to 10 minutes before notification is sent.

2 Likes