bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
617 stars 188 forks source link

Report Interface Number #127

Open ben-qnimble opened 2 years ago

ben-qnimble commented 2 years ago

Feature Request: Report the Interface Number in addition to the PID/VID/SN.

Often now with composite USB devices, there may be multiple interfaces with the same VID/PID/SN and it would be nice to be able to distinguish between them. I think returning the interface number would be a simple, clean way to enable this. I have a pull request that works on Linux and Windows (https://github.com/bugst/go-serial/pull/125) but haven't heard anything on it and I wanted to see if there was any interest in adding this to the code. I don't have a mac to test on, but I'd like to expand what I wrote to support the mac as well.

SynchronicIT commented 2 months ago

Would be helpful to us too.