serialport / bindings-cpp

The C++ bindings for the node serialport project.
MIT License
19 stars 39 forks source link

Add product property to PortInfo #138

Open jasoneer opened 1 year ago

jasoneer commented 1 year ago

I would like to add a product property to PortInfo to provide the USB device's product/model string separately on Mac and Linux. Unsure if Windows can display this string so left its implementation alone. Also on Linux, I used ID_MODEL instead of ID_MODEL_ENC as the escaped characters were getting in the way of parsing/display.

Typings change in https://github.com/serialport/bindings-interface/pull/43