/** * Read byte array from port * * @param byteCount count of bytes for reading * @return byte array with "byteCount" length * @throws SerialPortException */ public byte[] readBytes(int byteCount) throws SerialPortException { checkPortOpened("readBytes()"); return serialInterface.readBytes(portHandle, byteCount); }