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.
16 lines • 728 B
JavaScript
"use strict";
import { GW_FRAME_CFM } from "./common.js";
export class GW_GET_NETWORK_SETUP_CFM extends GW_FRAME_CFM {
IPAddress;
Mask;
DefaultGateway;
DHCP;
constructor(Data) {
super(Data);
this.IPAddress = `${this.Data.readUInt8(0)}.${this.Data.readUInt8(1)}.${this.Data.readUInt8(2)}.${this.Data.readUInt8(3)}`;
this.Mask = `${this.Data.readUInt8(4)}.${this.Data.readUInt8(5)}.${this.Data.readUInt8(6)}.${this.Data.readUInt8(7)}`;
this.DefaultGateway = `${this.Data.readUInt8(8)}.${this.Data.readUInt8(9)}.${this.Data.readUInt8(10)}.${this.Data.readUInt8(11)}`;
this.DHCP = this.Data.readUInt8(12) === 1;
}
}
//# sourceMappingURL=GW_GET_NETWORK_SETUP_CFM.js.map