standardsemiconductor / serialport

Cross platform Haskell library for using the serial port
https://hackage.haskell.org/package/serialport
Other
4 stars 8 forks source link

[Feature request] List all available serial devices #3

Open KristianBalaj opened 2 years ago

KristianBalaj commented 2 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

dopamane commented 2 years ago

Thank you for the suggestion! I will see what I can do and post any updates here. Sorry for the delay in responding, I was occupied at the time. However, I now have some more free time to focus on this.