Write fails with QSerialPort
General and Desktop
2
Posts
1
Posters
739
Views
1
Watching
-
Hi,
ububtu 12.04
Qt 5.1.1
I am trying to write a character to the serial port with QSerialPort, but I get no response from the device.
@qDebug() << "nr of btes written:" << serialBaro.write("a");
if (! serialBaro.isWritable() )
{qDebug() << "baro not writeble!!";}//is OK
if(! serialBaro.waitForReadyRead(100))//NOT OK, should get response as with boost
@
While using boost::asio (older version) writing goes OK, so the device is working correctly:
@ baro.writeString(string("a"));
baro.setTimeout(boost::posix_time::millisec(100));@