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 • 900 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.GW_GET_NETWORK_SETUP_CFM = void 0;
const common_js_1 = require("./common.js");
class GW_GET_NETWORK_SETUP_CFM extends common_js_1.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;
}
}
exports.GW_GET_NETWORK_SETUP_CFM = GW_GET_NETWORK_SETUP_CFM;
//# sourceMappingURL=GW_GET_NETWORK_SETUP_CFM.js.map
;