knx-dpt
v0.0.3
Published
Serialize and deserialize KNX datapoints
Downloads
11
Readme
KNX Datapoint library
Supported datatypes
For a full overview of supported datapoints, see here
Installation
$ npm install knx-dpt
Usage
Including the library
const dptlib = require('knx-dpt');
Getting a datapoint
By name
var dpt = dptlib.resolve('DPT6');
By name and subid
var dpt = dptlib.resolve('DPT6.020');
As property
var dpt = dptlib.dpt6
Testing
The tests run using tape and use faucet to present the results in a human-readable format. Make sure you've got all required modules installed:
$ npm install
Running the local test suite
You can run local unit tests:
$ npm test
Credits
This library is based on the work of:
- Elias Karakoulakis and his KNX library.
License
This code is free to use under the terms of the MIT license.