Skip to content

heavyrubberslave/node-estim2b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-estim2b

CircleCI

A node implementation for communicating with the E-Stim Systems 2B Power Box.

Example

const Serialport = require('serialport');
const Readline = require('@serialport/parser-readline');
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, new Readline());

instance.setMode(Estim2B.MODE_RANDOM);

Tests

There are some unit tests.

$ yarn test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published