Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
what is the procedure to clear (flush) the serial port buffer during a serial communication in c sharp?

thanks
Posted

1 solution

If you are using .NET and the 'SerialPort' class from the 'System.IO.Ports' namespace you could use 'DiscardInBuffer' or 'DiscardOutBuffer' to flush the input or output stream.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900