Package com.pi4j.io.serial

Examples of com.pi4j.io.serial.SerialPortException


     * @throws SerialPortException Exception thrown on any error.
     */
    public void open(String device, int baudRate) throws SerialPortException {
        fileDescriptor = com.pi4j.wiringpi.Serial.serialOpen(device, baudRate);
        if (fileDescriptor == -1) {
          throw new SerialPortException("Cannot open serial port");
        }
    }
View Full Code Here

TOP

Related Classes of com.pi4j.io.serial.SerialPortException

Copyright © 2018 www.massapicom. 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.