estim2b

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i estim2b

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

161 kB

Total Files

8

Last publish

Collaborators

  • heavyrubberslave