0.7.5 • Published 2 years ago

knx.js v0.7.5

Weekly downloads
94
License
Attribution-NonCo...
Repository
github
Last release
2 years ago

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)

0.7.5

2 years ago

0.7.4

5 years ago

0.7.2

6 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.12

7 years ago

0.6.11

8 years ago

0.6.10

8 years ago

0.6.8

8 years ago

0.6.7

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.2

8 years ago

0.6.1

8 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.0

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.0.1

9 years ago