You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, May 14th 2012, 6:50am

Serial port programming with qextserialport; timeout

Hi All,





I am working
on serial communication with QextSerialPort project.


How can I
use “timeout”? I have seen that it is a setTimeout() function, but I don’t know
how I can use it. I would like to use it
similar to select() c function. How can I do it?


Unfortunately
I cannot use select(), because I didn’t manage to find the file descriptor in
the above mentioned project.




My aim:




if ( 0 >
isAvailableMessage(100 ms)) {


//Use the message


} else{


//Time
}