* @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");
}
}