enocean-handler
v1.0.1
Published
An easy way to listen for button presses from Enocean Energy Harvesting Rocker Switches.
Downloads
6
Readme
Enocean Rocker Switch Handler
This package is designed for easy dispatching of custom Enocean Rocker Switch press handlers.
Usage
See example.js!
First, require the package.
var enoceanHandler = require('enocean-handler');
Next, instantiate your object and provide it the configuration.
var handler = new enoceanHandler('/dev/ttyUBS0', {
'mySenderId': {
'A0': function() {
console.log('Button A0 was pushed!');
}
}
});
Yes, it's that easy! :)