diff --git a/dist/lib/light.d.ts b/dist/lib/light.d.ts index d69196c..d61c3dc 100644 --- a/dist/lib/light.d.ts +++ b/dist/lib/light.d.ts @@ -277,7 +277,7 @@ export declare class Light { * * @returns response from device */ - getSummary(): Promise; + getSummary(): Promise; /** * Get the current movie * @@ -304,6 +304,16 @@ export declare class Light { * @returns */ setNetworkStatus(status: object): Promise; + /** + * + * @returns + */ + scanWifi(): Promise; + /** + * + * @returns + */ + getWifiResults(): Promise; } /** * Represents an authentication token used to login to an xled instance diff --git a/dist/lib/light.js b/dist/lib/light.js index fa239c6..b69cd65 100644 --- a/dist/lib/light.js +++ b/dist/lib/light.js @@ -724,6 +724,26 @@ export class Light { return res; }); } + /** + * + * @returns + */ + scanWifi() { + return __awaiter(this, void 0, void 0, function* () { + let res = yield this.sendGetRequest("/network/scan", {}); + return res; + }); + } + /** + * + * @returns + */ + getWifiResults() { + return __awaiter(this, void 0, void 0, function* () { + let res = yield this.sendGetRequest("/network/scan_results", {}); + return res; + }); + } } /** * Represents an authentication token used to login to an xled instance diff --git a/src/lib/light.ts b/src/lib/light.ts index c587bcd..29e9152 100644 --- a/src/lib/light.ts +++ b/src/lib/light.ts @@ -646,7 +646,7 @@ export class Light { * * @returns response from device */ - async getSummary() { + async getSummary(): Promise { let res = await this.sendGetRequest("/summary", {}); return res; } @@ -690,6 +690,24 @@ export class Light { let res = await this.sendPostRequest("/network/status", status); return res; } + + /** + * + * @returns + */ + async scanWifi(): Promise { + let res = await this.sendGetRequest("/network/scan", {}); + return res; + } + + /** + * + * @returns + */ + async getWifiResults(): Promise { + let res = await this.sendGetRequest("/network/scan_results", {}); + return res; + } } /**