5

Does anyone know the easiest way to control a serial port in c# (e.g. set baud rate, data bits, stop bits, read inbound messages in bytes, push outbound messages in bytes,...etc)? Are there any ready classes that I can utilize for this?

MPelletier
  • 16,256
  • 15
  • 86
  • 137

1 Answers1

7

You can do all this with the System.IO.SerialPort class. (so long as you're using >NET 2.0 or above.)

David
  • 72,686
  • 18
  • 132
  • 173