Ejemplo n.º 1
0
 //disconnect from the active connection
 public void Disconnect()
 {
     if (serialPort != null)
     {
         serialPort.CloseSerial();
     }
     serialPort = null;
     badConnections.Add(PortName);
     StopAllCoroutines();
 }