From 5ac2b713385724eaccabb765f0d6ddea650a7a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20S=C3=B8borg?= Date: Thu, 6 Jul 2023 16:23:32 +0200 Subject: [PATCH] feat: Support 16 bytes install codes for EZSP adapter (#730) Some Bosch Twinguards seems to come with a 16 byte installCode, which is denied without even trying to pair --- src/adapter/ezsp/adapter/ezspAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter/ezsp/adapter/ezspAdapter.ts b/src/adapter/ezsp/adapter/ezspAdapter.ts index 798ea9303d..80795748b9 100644 --- a/src/adapter/ezsp/adapter/ezspAdapter.ts +++ b/src/adapter/ezsp/adapter/ezspAdapter.ts @@ -256,7 +256,7 @@ class EZSPAdapter extends Adapter { } public async addInstallCode(ieeeAddress: string, key: Buffer): Promise { - 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);