UNPKG

klf-200-api

Version:

This module provides a wrapper to the socket API of a Velux KLF-200 interface. You will need at least firmware 0.2.0.0.71 on your KLF interface for this library to work.

31 lines 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GW_NODE_STATE_POSITION_CHANGED_NTF = void 0; const common_js_1 = require("./common.js"); class GW_NODE_STATE_POSITION_CHANGED_NTF extends common_js_1.GW_FRAME_NTF { NodeID; OperatingState; CurrentPosition; TargetPosition; FunctionalPosition1CurrentPosition; FunctionalPosition2CurrentPosition; FunctionalPosition3CurrentPosition; FunctionalPosition4CurrentPosition; RemainingTime; TimeStamp; constructor(Data) { super(Data); this.NodeID = this.Data.readUInt8(0); this.OperatingState = this.Data.readUInt8(1); this.CurrentPosition = this.Data.readUInt16BE(2); this.TargetPosition = this.Data.readUInt16BE(4); this.FunctionalPosition1CurrentPosition = this.Data.readUInt16BE(6); this.FunctionalPosition2CurrentPosition = this.Data.readUInt16BE(8); this.FunctionalPosition3CurrentPosition = this.Data.readUInt16BE(10); this.FunctionalPosition4CurrentPosition = this.Data.readUInt16BE(12); this.RemainingTime = this.Data.readUInt16BE(14); this.TimeStamp = new Date(this.Data.readUInt32BE(16) * 1000); } } exports.GW_NODE_STATE_POSITION_CHANGED_NTF = GW_NODE_STATE_POSITION_CHANGED_NTF; //# sourceMappingURL=GW_NODE_STATE_POSITION_CHANGED_NTF.js.map