Skip to content

Commit

Permalink
add status command
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Nov 28, 2024
1 parent 19ca776 commit 4a3d98e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,11 +1139,13 @@ class Bmw extends utils.Adapter {
if (res === 'EXECUTED') {
this.log.info('Remote command executed');
} else {
this.log.info('Event is not finished it is: ' + res);
this.log.info('Remote Event is not finished it is: ' + res);
await this.sleep(10000);
this.checkEventStatus(eventId, headers).then((res) => {
if (res === 'EXECUTED') {
this.log.info('Remote command executed');
} else if (res === 'RUNNING') {
this.log.info('Remote command is still running');
} else {
this.log.error('Remote command failed ' + res);
}
Expand Down

0 comments on commit 4a3d98e

Please sign in to comment.