Tries to enumerate all serial ports. While this usually works on
Windows, it's more problematic on other OS. Posix provides no way
to list serial ports, and the only option is searching through
"/dev".
Because there's no naming standard for the device files, this method
must be ported for each OS. This method is also unreliable because
the user could have created invalid device files, or deleted them.
A string array of all the serial ports that could be found, in
alphabetical order. Every string is formatted as a valid argument
to the constructor, but the port may not be accessible.
Tries to enumerate all serial ports. While this usually works on Windows, it's more problematic on other OS. Posix provides no way to list serial ports, and the only option is searching through "/dev".
Because there's no naming standard for the device files, this method must be ported for each OS. This method is also unreliable because the user could have created invalid device files, or deleted them.