Skip to content

Commit

Permalink
feat: Support 16 bytes install codes for EZSP adapter (#730)
Browse files Browse the repository at this point in the history
Some Bosch Twinguards seems to come with a 16 byte installCode, which is denied without even trying to pair
  • Loading branch information
NicolaiSoeborg authored Jul 6, 2023
1 parent 9c0a0dd commit 5ac2b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/ezsp/adapter/ezspAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class EZSPAdapter extends Adapter {
}

public async addInstallCode(ieeeAddress: string, key: Buffer): Promise<void> {
if ([8, 10, 14, 18].indexOf(key.length) === -1) {
if ([8, 10, 14, 16, 18].indexOf(key.length) === -1) {
throw new Error('Wrong install code length');
}
await this.driver.addInstallCode(ieeeAddress, key);
Expand Down

0 comments on commit 5ac2b71

Please sign in to comment.