All,
I am trying to build a simple event driven program to monitor a com port until there is data and then respond. The basic serial IO is working, but I can't figure out how to make it event driven. Specifically, how do detect when there is data ready to be received, and then how do I act on the event. I think I need SerialDataReceivedEventHandler but I can't figure out how to use it.
If someone could provide just the skeleton of a program showing the syntax req'd to detect the presence of data and then call the function to receive it, I'd appreciate it. I can fill in the rest myself.
All of this is going to be in one class if that makes it any easier.
Thanks,
Bill