How to reset connection to a board?
Hi, My goal is to find a workaround for this problem: Device or Firmware Error A timeout occurred while connecting to the Board https://github.com/rwaldron/johnny-five/issues/1260 https://stackoverflow.com/questions/52242319/johnny-five-unable-to-connect-to-arduino
I kind of gave up to find a direct solution for that. I noticed that if I restart the program it works 100% of the time. So I would like make a new connection without restarting the whole program.
I found this discussion talking about it, but it seems there's no solution. I don't understand the argument saying "if we close and connect, the board would be in a corrupted state" because if we destroy the whole johnny-five object, and create a new one with "new", we'd have a clean state.
I tried to just destroy the current johnny-five object and recreate a clean one, but obviously it doesn't work: I get this error message : Error Resource temporarily unavailable Cannot lock port
Is there any other approach ? Thanks
Source: rwaldron/johnny-five