Qt serial port: write and read data
问题 I'm able to connect to my serial port, but I need to read data from it all the time. It's working for about 39 minutes, but after it stops at line serial.flush() . When I stop Qt and start it again it also stops at serial.flush() . I need to restart my modem to let it work again... I'm not sure I'm executing this properly... // Open Serial connexion QSerialPort serial; serial.setPortName("usbserial-26214A"); serial.open(QIODevice::ReadWrite); serial.setBaudRate(QSerialPort::Baud115200);