Skip to content

Commit

Permalink
feat: Remove EZSP queue to improve message throughput (#727)
Browse files Browse the repository at this point in the history
This allows you to send multiple commands without waiting for a response from the device.
  • Loading branch information
kirovilya authored Jun 26, 2023
1 parent 0b9931d commit 95c8795
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/adapter/ezsp/adapter/ezspAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,11 @@ class EZSPAdapter extends Adapter {
ieeeAddr: string, networkAddress: number, endpoint: number, zclFrame: ZclFrame, timeout: number,
disableResponse: boolean, disableRecovery: boolean, sourceEndpoint?: number,
): Promise<Events.ZclDataPayload> {
return this.driver.queue.execute<Events.ZclDataPayload>(async () => {
this.checkInterpanLock();
return this.sendZclFrameToEndpointInternal(
ieeeAddr, networkAddress, endpoint, sourceEndpoint || 1, zclFrame, timeout, disableResponse,
disableRecovery, 0, 0, false, false, false, null
);
}, networkAddress);
this.checkInterpanLock();
return this.sendZclFrameToEndpointInternal(
ieeeAddr, networkAddress, endpoint, sourceEndpoint || 1, zclFrame, timeout, disableResponse,
disableRecovery, 0, 0, false, false, false, null
);
}

private async sendZclFrameToEndpointInternal(
Expand Down

0 comments on commit 95c8795

Please sign in to comment.