crayzeewulf / libserial

Serial Port Programming in C++
BSD 3-Clause "New" or "Revised" License
398 stars 141 forks source link

[Feature] List of avalible RS`s [sf#4] #42

Closed crayzeewulf closed 7 years ago

crayzeewulf commented 9 years ago

Reported by wit3k on 2008-10-06 17:07 UTC I think about something like System.IO.Ports.SerialPort.GetPortNames() in Mono. But I think that funtion outputting array (or for the best STL`s vector) is not enought. There should be inner vector that user would not be forced to create his own.

crayzeewulf commented 9 years ago

Commented by crayzeewulf on 2008-10-07 03:47 UTC I am not familiar with Mono but I am assuming that the above method returns a list of all available serial ports on the system. I have not needed such a function in any of my applications of libserial but I realize that it will be useful in applications that let users select a serial port via a GUI, for example. I would like to keep this feature request open but I think this will have to wait till after the release of version 0.6 (due end of this month).

crayzeewulf commented 7 years ago

SerialPort class now contains a GetAvailableSerialPorts() method to query the list of available serial ports. Currently, this only works on Linux. See this.