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

Expose SerialPortFactory method #576

Closed
wants to merge 1 commit into from
Closed

Conversation

lfk
Copy link

@lfk lfk commented Sep 10, 2015

Addresses issue #575

Allows the user to manually instantiate a new SerialPortFactory,
including an options object. Does not break backwards-compatibility.

Usage example:

var serial = require('serialport'),
    serial = new serial.SerialPortFactory({ 'queryPortsByPath': true });

Querying ports by path is desireable when there is a need to interact
with multiple identical serial devices.

Allows the user to manually instantiate a new `SerialPortFactory`,
including an options object. Does not break backwards-compatibility.

Usage example:

```js
var serial = require('serialport'),
    serial = new serial.SerialPortFactory({ 'queryPortsByPath': true });
```

Querying ports by path is desireable when there is a need to interact
with multiple identical serial devices.
@lfk
Copy link
Author

lfk commented Sep 14, 2015

Any feedback on this?

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants