@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
System.out.println("Stop is " + serialPort.getStopBits()); System.out.println("Par is " + serialPort.getParity()); serialPort.close();
@Override public void close() { port.close(); }
@Override public void close() { sp.close(); }
@Override public void run() { IOUtils.closeQuietly(inputStream); IOUtils.closeQuietly(outputStream); if(serialPort != null) { serialPort.close(); serialPort = null; } } }, "eBUS serial shutdown thread");
@Override public void disconnect() { logger.debug("Closing connection to INT-RS module"); try { this.serialPort.close(); logger.info("Connection to INT-RS module has been closed"); } catch (Exception e) { logger.error("An error occurred during closing serial port", e); } } }
/** * Close this serial device */ public void close() { serialPort.removeEventListener(); IOUtils.closeQuietly(inputStream); IOUtils.closeQuietly(outputStream); serialPort.close(); } }
@Override public void close() throws IOException { inputOutputToken.close(); port.close(); port = null; }
/** * Close this serial device * */ public void close() { serialPort.removeEventListener(); IOUtils.closeQuietly(inputStream); IOUtils.closeQuietly(outputStream); serialPort.close(); }
@Override public void close() throws IOException { inputOutputToken.close(); port.close(); port = null; }
public static void close(SerialPort serialPort){ if(serialPort != null) if(serialPort instanceof RXTXPort) RXTXHack.closeRxtxPort((RXTXPort)serialPort); else serialPort.close(); } }
public void addEventListener ( SerialPortEventListener listener ) { try { sPort.addEventListener( listener ); } catch ( TooManyListenersException e ) { sPort.close( ); logger.warn( e.getMessage( ) , e ); } }
/** * Close the serial port. */ public void close() { logger.debug("Close ComfoAir connection"); ComfoAirCommand command = ComfoAirCommandType.getChangeCommand( ComfoAirCommandType.ACTIVATE.key, new DecimalType(0)); sendCommand(command); IOUtils.closeQuietly(inputStream); IOUtils.closeQuietly(outputStream); serialPort.close(); }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }
@Override protected void doClose() throws Exception { open = false; try { super.doClose(); } finally { if (serialPort != null) { serialPort.removeEventListener(); serialPort.close(); serialPort = null; } } }