uart-unpack-frame
v1.0.1
Published
unpack UART data used for serial communication
Maintainers
Readme
uart-unpack-frame
unpack UART data used for serial communication
example
var Unpack = require('uart-unpack-frame');
var u = Unpack();
u.write(Buffer('c42aab2cb84012ebadb7e052f8', 'hex'));
u.pipe(process.stdout);output:
beep boopapi
var unpack = require('uart-unpack-frame')var u = unpack(opts)
Create an unpack transform stream u to decode uart serial data.
opts.polarity- set to-1to flip the polarity. default: 1
install
With npm do:
npm install uart-unpack-framelicense
MIT
