jputcu / serialport

Cross platform haskell library for using the serial port
Other
43 stars 36 forks source link

[Feature request] List all available serial devices #36

Open KristianBalaj opened 3 years ago

KristianBalaj commented 3 years ago

The API should support a function to list available devices, that could be later printed to the console or used in any other way.

The return type from this function could be a list and a data supporting fields like for example the ListPortInfo in the pyserial package.

https://pyserial.readthedocs.io/en/latest/tools.html#serial.tools.list_ports.ListPortInfo