http://doc.qt.io/qt-5/qserialport.html#open
Warning: The mode has to be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. Other modes are unsupported.
Following code does not open the serial port.
if(serialPort.open (QIODevice::ReadWrite | QIODevice::Unbuffered))
{
qDebug() << "asdasdas";
serialPort.setDataBits(QSerialPort::Data8);
serialPort.setParity(QSerialPort::NoParity);
serialPort.setStopBits(QSerialPort::OneStop);
}
else
{
qDebug() << "QSerialPort::SerialPortError: " << serialPort.errorString();
}
what is the way to use the unbuffered flag?