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.
19 lines • 694 B
JavaScript
import { GW_FRAME_COMMAND_REQ } from "./common.js";
export class GW_STOP_SCENE_REQ extends GW_FRAME_COMMAND_REQ {
SceneID;
PriorityLevel;
CommandOriginator;
constructor(SceneID, PriorityLevel = 3, CommandOriginator = 1) {
super(5);
this.SceneID = SceneID;
this.PriorityLevel = PriorityLevel;
this.CommandOriginator = CommandOriginator;
const buff = this.Data.subarray(this.offset);
buff.writeUInt16BE(this.SessionID, 0);
buff.writeUInt8(this.CommandOriginator, 2);
buff.writeUInt8(this.PriorityLevel, 3);
buff.writeUInt8(this.SceneID, 4);
}
}
//# sourceMappingURL=GW_STOP_SCENE_REQ.js.map
;