Serial port and GPS

Serial.COMPORTS Field

All available serial port names

[Visual Basic]
Public Shared ReadOnly COMPORTS As String()
[C#]
public static readonly string[] COMPORTS;

Remarks

Depending on, if the code has been compiled with CHECK_AVAILABLE_PORTS defined or not this array contains a sorted output of System.IO.Ports.SerialPort.GetPortNames() or only these ports, which could be opened without an exception. The check, if the port can be opened, takes a remarkable amount of time on small and slow mobile devices, therefore it is better to compile the code without this define.

See Also

Serial Class | serial Namespace