Accessing COM ports

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.
 

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