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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top