Skip to content

Commit

Permalink
added getmovieconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
foomoon committed Dec 10, 2023
1 parent 45b8c58 commit 56c3984
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/lib/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,15 @@ export class Light {
);
return res;
}
/**
* Get the movie config from the device
*
* @returns response from device
*/
async getMovieConfig() {
let res = await this.sendGetRequest("led/movie/config", {});
return res;
}
/**
* Send a movie to the device
*
Expand Down Expand Up @@ -595,7 +604,7 @@ export class Light {
}
/**
* Get network status
*
*
* @returns response from device
*/
async getNetworkStatus(): Promise<object> {
Expand All @@ -604,9 +613,9 @@ export class Light {
}
/**
* Set network status
*
* @param status
* @returns
*
* @param status
* @returns
*/
async setNetworkStatus(status: object): Promise<object> {
let res = await this.sendPostRequest("/network/status", status);
Expand Down

0 comments on commit 56c3984

Please sign in to comment.