Package Exports
- enocean-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (enocean-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
enocean-js
starting with enocean-js@0.0.1-beta.8 there is now an installable package. you can start using and testing it!
install
npm i -S enocean-jssimple examle
nmp i -S enocean-js serialportand then...
const SerialPort = require('serialport')
const Enocean = require('enocean-js')
const pretty = Enocean.pretty
const ESP3Parser = Enocean.ESP3Parser
const port = new SerialPort('/dev/ttyUSB0', { baudRate: 57600 })
const parser = new ESP3Parser()
port.pipe(parser)
parser.on('data', pretty.logESP3)