gobot icon indicating copy to clipboard operation
gobot copied to clipboard

Best way to detect if a firmata connection is established?

Open sdistefano opened this issue 7 years ago • 2 comments

I'm having problems detecting if my firmata connection is established or not. In either case, robot.Running() returns true and I can run log commands from a gobot.Every.

What's the recommended way to constantly check that the connection is established and attempt to restart it otherwise?

sdistefano avatar Jun 05 '18 20:06 sdistefano

The Robot's Start() currently ensures that all the Adaptors are correctly started. However it does NOT do anything about restarts/failover etc.

There is a conversation started in #558 about this very topic. I think this issue can be closed in favor of tracking that one.

deadprogram avatar Jun 06 '18 05:06 deadprogram

Thank you! Is there no known workaround at the moment? I have tried making a digital read as a form of PING, but even this is returning normal values even when I unplug the card after connection

sdistefano avatar Jun 06 '18 12:06 sdistefano