1.0.1 • Published 9 years ago

enocean-handler v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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! :)