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 638 B
"use strict"; import { GW_FRAME_REQ } from "./common.js"; export class GW_SET_NODE_ORDER_AND_PLACEMENT_REQ extends GW_FRAME_REQ { NodeID; Order; Placement; constructor(NodeID, Order, Placement) { super(4); this.NodeID = NodeID; this.Order = Order; this.Placement = Placement; const buff = this.Data.subarray(this.offset); // View on the internal buffer makes setting the data easier buff.writeUInt8(this.NodeID, 0); buff.writeUInt16BE(this.Order, 1); buff.writeUInt8(this.Placement, 3); } } //# sourceMappingURL=GW_SET_NODE_ORDER_AND_PLACEMENT_REQ.js.map