Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including knx-dpt with all npm packages installed. Try it out:

var knxDpt = require("knx-dpt")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

knx-dpt v0.0.3

Serialize and deserialize KNX datapoints

KNX Datapoint library

npm version Build Status Build Status

Supported datatypes

For a full overview of supported datapoints, see here


$ npm install knx-dpt


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


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


This library is based on the work of:

  • Elias Karakoulakis and his KNX library.


This code is free to use under the terms of the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free