listening serial port

  • Thread starter Thread starter Mark Albourgh
  • Start date Start date
M

Mark Albourgh

Does anyone know a way of listening to serial port?
I know how to read data from it, but only know
to check the port for the data constantly which occupies cpu a lot.
I need this to receive data from a machine.

Thx
 
Use the WaitCommEvent API from a separate thread. WaitCommEvent will return
when one of the events defined in SetCommMask is triggered.
 
Back
Top