jssc
v0.2.6
Published
JavaScript serial connection library that uses Java(!)
Downloads
17
Readme
Java(Script) Serial Connector
jssc, Java Simple Serial Connector, ported to Node.js.
Install:
npm install jssc
Use:
var jssc = require('jssc');
var serial = jssc.listen(path[, debugmode]);
// writing data
serial.write(buffer, function (err) { ... });
// events
serial.on('connected', function (err) { ... })
serial.on('data', function (err) { ... })
serial.on('error', function (err) { ... })
serial.on('close', function (err) { ... })
// serial line controls
serial.on('cts', function (isClearToSend) { ... })
serial.on('dsr', function (isDataSetReady) { ... })
Requirements
- Java
- courage