How do you read data sent from device?
Remember that TCP has not the concept of "single packet" as UDP; so you need to read the correct amount of data.
Can you post the code??
How do you read data sent from device?
Remember that TCP has not the concept of "single packet" as UDP; so you need to read the correct amount of data.
Can you post the code??
A camel can go 14 days without drink,
I can't!!!
I simply read with the read method of the tcpSocket after waitforreadyread , but now it seem to work if create the tcpSocket object in the thread itself and not pass it from my windows class ! but it's right that UDP will be more adapted for my application !
The readyRead() signal indicates that some data has been received. It does not indicate that all data has been received and it is not re-emitted if you don't read all the available data unless new data is received. Are you sure you don't have all your data sitting in the buffer and are sitting there waiting for a new readyRead() that will never come?
Bookmarks