UNPKG

knxultimate

Version:

KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.

26 lines (19 loc) 428 B
import KNXHeader from './KNXHeader' export default class KNXPacket { private _header: KNXHeader public type: number public length: number constructor(type: number, length: number) { this.type = type this.length = length this._header = new KNXHeader(type, length) this.type = type this.length = length } get header(): KNXHeader { return this._header } toBuffer(): Buffer { return Buffer.alloc(0) } }