How to trigger an event with a COM port?

ken76

Member
Joined
Nov 15, 2018
Messages
23
Programming Experience
5-10
How to trigger an event when the last data was read from COM port after a certain time with C#?
Is it possible?
 
Yes, it is possible, but you have to write code to do it. Basically you'll need to setup a timer, as well as have a variable that holds the last time that data was read. Whenever the timer event fires, compare the difference between the current time and the variable. If the difference exceeds your time out value, then fire an event.
 
Back
Top Bottom