We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I work with a bluetooth serial device and I regularly get the message: Error opening serial port... : Port Busy.
When I retry a few times I can get a connection. Is there a way that I can catch the error in my program itself and retry the connection.
So when this happens I could run something like:
port.clear(); port.stop(); port = new Serial(this, Serial.list()[portNumber], 9600); port.clear();