Read from serial port not working when "connect" method is used to call the read method.
-
Hi All,
I have a problem with my code. I have a write to arduino from Qt, followed with a read from QT which receives data from arduino.
Again there is another write from QT to arduino , followed with a read from QT which receives data from arduino.
Problem - > If I call all the read methods without connect function everything works but the only issue is that QT will not receive data in the first call , I mean I have to do the write for a second time to receive the data from arduino.
If I call the read method using the "connect" method in Qt it works just fine , read data happens in a single call but only the first read and write will work. The second write to arduino and the following read will not give me any data.Please help . I have been trying to solve this for a long time.
Thanks
Greeshma -
Hi and welcome to devnet,
Several users on this forum are successfully using QSerialPort to communicate with Arduino boards so it should be a good solution.
Can you share the code you use ?