Socket
Socket
Sign inDemoInstall

knx.js

Package Overview
Dependencies
2
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    knx.js

KNXnetIP (KNX over IP) deriver for nodejs.


Version published
Weekly downloads
12
decreased by-73.33%
Maintainers
2
Install size
191 kB
Created
Weekly downloads
 

Readme

Source

KNXnetIP (KNX over IP) deriver for nodejs.

Based on https://github.com/lifeemotions/knx.net

Right now it not tested in all directions, but KnxConnectionTunneling is working. One can find Usage example, it tested with KNXnet/IP router: ABB IPR/S 2.1.

Install

  • go to npm's package dir
  • npm i knx.js --save
  • or yarn add knx.js --save

Usage

const KnxConnectionTunneling = require('knx.js').KnxConnectionTunneling;
let connection = new KnxConnectionTunneling('192.168.2.222', 3671, '192.168.2.107', 13671);

connection.on('event', event => console.log('Event received', event));
connection.on('status', status => console.log('Status received', status));

let lightValue = false;
const toggleLight = () => {
  lightValue = !lightValue;
  connection.Action('1/0/0', lightValue);
};

connection.Connect(function () {
  setTimeout(toggleLight, 2000);
  setTimeout(toggleLight, 5000);
  setTimeout(() => connection.Disconnect(), 7000);
});

License

Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)

Keywords

FAQs

Last updated on 02 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc