c++ - How to find out if my COM port has recieved XOFF? -


i testing code serial port communication. using synchronous io keep things simple. have observed when pc recieves xoff program pauses, no more printing in console window. when program recieves xon starts running again.

what method exists find out if program's serial port has earlier recieved xoff (regardless of synchronous , asynchronous io) since com port driver shall prevent port sending characters out in case , better check if xoff recieved before calling writefile().

i think 1 way use clearcommerror() comstat struct. way? impression reading https://msdn.microsoft.com/en-us/library/ff802693.aspx if so, appears strange way of doing that.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo