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.

18 lines 728 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GW_SET_NODE_VARIATION_REQ = void 0; const common_js_1 = require("./common.js"); class GW_SET_NODE_VARIATION_REQ extends common_js_1.GW_FRAME_REQ { NodeID; NodeVariation; constructor(NodeID, NodeVariation = 0) { super(2); this.NodeID = NodeID; this.NodeVariation = NodeVariation; const buff = this.Data.subarray(this.offset); // View on the internal buffer makes setting the data easier buff.writeUInt8(this.NodeID, 0); buff.writeUInt8(this.NodeVariation, 1); } } exports.GW_SET_NODE_VARIATION_REQ = GW_SET_NODE_VARIATION_REQ; //# sourceMappingURL=GW_SET_NODE_VARIATION_REQ.js.map