Heartbeat library

Just wondering if a heartbeat or error checking library exists for the Particle Subscribe/Publish system? Basically I’ve got two Cores and they’re constantly dropping their connections so I can’t be sure that one won’t be having a dopey moment when the other sends a message and visa versa.

If you’re just using two devices, you could use a ping strategy with Particle.publish and Particle.subscribe to have each device check if the other is online.

The first thing I’d do would be to check why the Cores are dropping connection.
It could be due to the code.

1 Like