0.1.1 • Published 5 years ago

estim2b v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

node-estim2b

CircleCI

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
0.1.1

5 years ago

0.1.0

5 years ago