private Boolean removeSerialPort ( ) { Boolean ret = true ; if ( serialPort != null ) { ret = serialPort . disconnect ( ) ; serialPort = null ; } return ret ; }
Disconnect from the SerialPort object that we are communicating with over the Firmata protocol .