wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.03k forks source link

Break out USB information into PortInfo #247

Open dsandber opened 3 years ago

dsandber commented 3 years ago

Hi,

I'd like to access the individual USB fields that are retrieved when doing a port list -- vendor-id, product-id, manufacturer-id, serial, etc. Right now they are only available as a combined string which would then need to be broken apart.

Would you accept a PR that adds those individual fields to PortInfo?