(self)
Close the serial connection.
Close the serial connection.
Close the serial connection .
def close(self):
        """Close the serial connection."""
        if self._serial and self._serial.is_open:
            logging.debug('Closing serial port %s.', self._serial.port)
            self._serial.close()
def close ( self ) : if self . _serial and self . _serial . is_open : logging . debug ( 'Closing serial port %s.' , self . _serial . port ) self . _serial . close ( )