Clear Serial Port Buffer

P

Paul G. Tobey [eMVP]

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.
 
D

Dick Grier

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.
 

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

Top