Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add product property to PortInfo #2695

Open
jasoneer opened this issue Aug 29, 2023 · 0 comments
Open

Add product property to PortInfo #2695

jasoneer opened this issue Aug 29, 2023 · 0 comments

Comments

@jasoneer
Copy link

💥 Proposal

What feature you'd like to see

I would like to add a product property to PortInfo to provide the USB device's product/model string.

Motivation

I would like to get this value separately instead of parsing it out of pnpId on Mac/Linux.

Pitch

I created the following PRs to implement this change:
Typings: serialport/bindings-interface#43
Implementation: serialport/bindings-cpp#138

The PRs have been tested on both Mac and Linux with a few USB serial devices. Was unsure about Windows 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant