reset characteristic state and new version
This commit is contained in:
parent
1e21d23f38
commit
a3b1d1d5d9
3 changed files with 4 additions and 2 deletions
|
|
@ -282,6 +282,7 @@ class PlejdService extends EventEmitter {
|
|||
this.device.disconnect();
|
||||
|
||||
this.state = STATE_DISCONNECTED;
|
||||
this.characteristicState = STATE_UNINITIALIZED;
|
||||
}
|
||||
|
||||
authenticate() {
|
||||
|
|
@ -381,6 +382,7 @@ class PlejdService extends EventEmitter {
|
|||
|
||||
this.unsubscribeCharacteristics();
|
||||
this.state = STATE_DISCONNECTED;
|
||||
this.characteristicState = STATE_UNINITIALIZED;
|
||||
|
||||
this.connect(this.device.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue