0.7.5 • Published 3 years ago
knx.js v0.7.5
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
0.7.5
3 years ago
0.7.4
6 years ago
0.7.2
8 years ago
0.7.1
8 years ago
0.7.0
8 years ago
0.6.12
8 years ago
0.6.11
9 years ago
0.6.10
9 years ago
0.6.8
9 years ago
0.6.7
9 years ago
0.6.4
9 years ago
0.6.3
9 years ago
0.6.2
9 years ago
0.6.1
9 years ago
0.6.0
10 years ago
0.5.0
10 years ago
0.4.0
10 years ago
0.3.3
10 years ago
0.3.2
10 years ago
0.3.1
10 years ago
0.3.0
10 years ago
0.2.5
10 years ago
0.2.4
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.0
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.0.1
10 years ago