Clear Serial Port Buffer

  • Thread starter Thread starter tony
  • Start date Start date
I'm not familiar enough with the .NET CF SerialPort class to give a perfect
answer, but an inspection of the *Help* for the class shows
DiscardInBuffer() and DiscardOutBuffer() methods...

Paul T.
 
Read clears it.

I (personally) think it is silly to DicardInputBuffer, but you can do that
too.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Back
Top