mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
typo in example fixed (#16)
This commit is contained in:
parent
8c9f1a4e10
commit
2ee7f8dc25
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ const Transform = require('stream').Transform
|
|||
* @extends Transform
|
||||
* @example
|
||||
const SerialPort = require('serialport')
|
||||
const Regex = = require('parser-regex')
|
||||
const Regex = require('parser-regex')
|
||||
const port = new SerialPort('/dev/tty-usbserial1')
|
||||
const parser = port.pipe(new Regex({ regex: /[\r\n]+/ }))
|
||||
parser.on('data', console.log)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue