Is it necessary to have a thread dealing with serial data
Unsolved
General and Desktop
-
Hi,
I am trying to limit time of receiving serial data with a Timer. Data receiving should be stopped while Time setted down to zero. For example, serial port should to close itself as soon as the Timer counting reaches 0 from 5 seconds if it was setted to 5s. Is it necessary to open a thread for receving data or dealing with Timer.
-
@Make-it-GREAT-again said in Is it necessary to have a thread dealing with serial data:
Is it necessary to open a thread for receving data or dealing with Timer.
No. Qt is an asynchronous framework.
-
As already said, no...but you MUST consider it as streaming character data that can arrive in chunks of any size so your transaction/framing logic needs to be well thought out.