mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Update .list docs to be up to date
This commit is contained in:
parent
39946c4bc0
commit
8bc3eeab32
1 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ serialPort.open(function (error) {
|
|||
|
||||
Retrieves a list of available serial ports with metadata.
|
||||
|
||||
* `callback` is a required function that looks should look like: `function (err, ports) { ... }`. `ports` will be an array of objects with port info. Only the `comName` is guaranteed, all the other fields are retrieved as available. The `comName` is either the path or identifier (eg `COM1`) used to open the serialport.
|
||||
* `callback` is a required function that looks should look like: `function (err, ports) { ... }`. `ports` will be an array of objects with port info. Only the `comName` is guaranteed, all the other fields undefined if unavailable. The `comName` is either the path or identifier (eg `COM1`) used to open the serialport.
|
||||
|
||||
```js
|
||||
// example port information
|
||||
|
|
@ -190,7 +190,7 @@ Retrieves a list of available serial ports with metadata.
|
|||
comName: '/dev/cu.usbmodem1421',
|
||||
manufacturer: 'Arduino (www.arduino.cc)',
|
||||
serialNumber: '757533138333964011C1',
|
||||
pnpId: '',
|
||||
pnpId: undefined,
|
||||
locationId: '0x14200000',
|
||||
vendorId: '0x2341',
|
||||
productId: '0x0043'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue