Examples of RXTXPort


Examples of gnu.io.RXTXPort

    }

    // fixed issue as rxtx library originally used in j62056 does use
    // different version of rxtx
    // com port in their version is using gnu.io.CommPort
    RXTXPort commPort;
    try {
      commPort = portIdentifier.open(this.getClass().getName(), 2000);
    } catch (PortInUseException e) {
      throw new IOException("Serial port is currently in use.", e);
    }

    if (!(commPort instanceof SerialPort)) {
      commPort.close();
      throw new IOException("The specified CommPort is not a serial port");
    }

    serialPort = (SerialPort) commPort;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.