mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Fix SerialPort.list() docs
This commit is contained in:
parent
6ddd7ecfe1
commit
3a201bf310
1 changed files with 2 additions and 1 deletions
|
|
@ -187,7 +187,8 @@ List Ports
|
|||
You can also list the ports along with some metadata as well.
|
||||
|
||||
```js
|
||||
serialport.list(function (err, ports) {
|
||||
var SerialPort = require("serialport");
|
||||
SerialPort.list(function (err, ports) {
|
||||
ports.forEach(function(port) {
|
||||
console.log(port.comName);
|
||||
console.log(port.pnpId);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue