Main class for performing serial port operations
DSerial serialPort = new DSerial("/dev/ttyS0"); serialPort.setBlockingMode(DSerial.BlockingMode.TimedImmediately); serialPort.setTimeout(200); // 200 millis serialPort.open(); ubyte c; // reading while (serialPort.read(c) == 1) { // Do work } // writing ubyte[] msgBuf = messageToBytes(msg); return serialPort.write(msgBuf);
Date: 08-2022 v0.0.1: 08-2022 v0.0.2: 09-2023 Fixed baudrate bug
A serial port library that support non blocking IO Main class that encapsulates access to the serial port