Get list of serial ports
Get list of serial ports
How to get list of serial ports in c#?
Re: Get list of serial ports
using System.IO.Ports;
//read ports to array
string[] sports = SerialPort.GetPortNames();
for (int i = 0; i <= sports.GetUpperBound(0); i++)
{
Console.WriteLine(sports);
}
//read ports to array
string[] sports = SerialPort.GetPortNames();
for (int i = 0; i <= sports.GetUpperBound(0); i++)
{
Console.WriteLine(sports);
}