UNPKG

node-red-contrib-knx-ultimate

Version:

Control your KNX intallation via Node-Red! Single Node KNX IN/OUT with optional ETS group address importer. Easy to use and highly configurable.

25 lines (23 loc) 518 B
class KNXDataBuffer { constructor(_data, _info) { this._data = _data; this._info = _info; } get length() { return this._data == null ? 0 : this._data.length; } get value() { return this._data; } get info() { return this._info; } sixBits() { if (this.info == null) { return true; } //return !(this.info.type.type === '1'); return this.info.type.type; } } exports.KNXDataBuffer = KNXDataBuffer;