Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
serial ports as streams
JavaScript C++ Python C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
.jshintrc
README.md
binding.gyp
index.js
package.json
term.js

README.md

serialport-stream

Serial ports as streams.

Installation

npm install serialport-stream

API

new Serial(port = '/dev/ttyS0', baud = 115200)

Returns a new serial duplex stream.

serial.close()

Close the port.

event 'open'

Emitted when the port is opened. Unlike with node-serialport, you don't need to wait for this event to start reading or writing. Streams all the way.

Compatibility

This is currently implemented with a POSIX-only native binding. If you'd want to implement Windows compat, that'd rock.

Something went wrong with that request. Please try again.