i need to set a timer to timeout if no data is received from the serial com port.
I cant use sleep() as data may come in anytime and need to be processed immediately. sleep() will halt the program for that time.
How do i set an timer alarm to indicate timeout? Or is there any articles or ways that can help to solve the problem?
Thanks
Marianne