estim2b
v0.1.1
Published
A node implementation for communicating with the E-Stim Systems 2B Power Box.
Downloads
23
Readme
node-estim2b
A node implementation for communicating with the E-Stim Systems 2B Power Box.
Example
const Serialport = require('serialport');
const Estim2B = require('estim2b');
const port = new Serialport('/dev/ttyUSB0');
port.on('open', function () {
console.log('Established connection');
}).on('error', function (err) {
console.log('Error -> ' + err.message);
});
const instance = new Estim2B(port);
instance.setMode(Estim2B.MODE_RANDOM);
Tests
There are some unit tests.
$ yarn test