@arces-wot/sanjs
v0.7.2
Published
API to interact with Sensor Area Network protocol
Downloads
25
Maintainers
Readme
SANjs
A simple library to interect with Sensor Area Network devices.
Usage
Simple command:
const sanjs = require("sanjs")
let SAN = sanjs("/dev/ttyUSB0")
SAN.shortCommand(1,13,[1,2,3]).then(() => {
console.log("OK")
}).catch((error) => {
console.error(error)
}).then(SAN.close.bind(SAN))