Accessing COM ports

  • Thread starter Thread starter Kevin E.
  • Start date Start date
K

Kevin E.

I just started looking into communicating with devices over a serial port. I
created a new project, and added "using System.IO.Ports" at the top of all
the code. I have a device connected via bluetooth which has a COM4 port open
for incoming communication. The point I get stuck at is trying to determine
what the COM port is named so i can access the SerialPort.Readline() method.
Is there a way i can get a list of all the COM port names that are open on my
computer. Any suggestions or tips are greatly appreciated. Thanks.
 
Back
Top