Hi Particle community,
I’m wondering what the best method is to check if another Particle Electron is online.
Our scenario: Sound an alarm if a separate Electron sensor unit goes offline for more than 60 seconds.
At the moment, I’m using a Publish & Subscribe to share the current time and then compare the difference in seconds at the alarm unit.
From our testing, I have found it to be semi-reliable - but I get the impression the device gets booted off the pub/sub system sometimes for sending too many publishes (given we are doing 1 every 5 seconds - it isn’t hitting the 1 per 1 second rule… but I suspect sometimes a few of these messages bunch up on the network (bit of speculation - but can’t seem to identify why else it would drop off)
I’m wondering if anyone has found a better approach?
Would greatly appreciate any tips, ideas or suggestions - thank you