Skip to content

Commit

Permalink
Add notification after ZCL property changed
Browse files Browse the repository at this point in the history
  • Loading branch information
agendek78 committed Nov 7, 2019
1 parent 0abc2d4 commit 5aa2ab5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zb-driver.js
Expand Up @@ -755,6 +755,10 @@ class ZigbeeDriver {
property.deferredSet = null;
deferredSet.resolve(property.value);
}

const node = this.adapter.findNodeFromTxFrame(this.lastFrameSent);

node.notifyPropertyChanged(property);
break;
}
default:
Expand Down
5 changes: 5 additions & 0 deletions zstack-driver.js
Expand Up @@ -577,6 +577,11 @@ class ZStackDriver extends ZigbeeDriver {
}
} else if (frame.subsys == subSys.AF) {
frame.status = frame.payload[0];
frame.type = self.getExplicitRxFrameType();
// console.log('last frame: ', JSON.stringify(this.lastFrameSent));
if (this.lastFrameSent.destination64) {
frame.remote64 = this.lastFrameSent.destination64;
}
if (frame.status == 0x00) {
frame.id = self.lastIDSeq;
} else {
Expand Down

0 comments on commit 5aa2ab5

Please sign in to comment.