From 19849dc39d8255c347b954c4e47b4b6ed12ad288 Mon Sep 17 00:00:00 2001 From: Ilya Kirov Date: Tue, 14 Jan 2025 22:15:51 +0300 Subject: [PATCH] fix: ZBOSS: fix reverse extended panid (#1293) --- src/adapter/zboss/driver.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/adapter/zboss/driver.ts b/src/adapter/zboss/driver.ts index d037e6943d..768e7e7b65 100644 --- a/src/adapter/zboss/driver.ts +++ b/src/adapter/zboss/driver.ts @@ -171,7 +171,8 @@ export class ZBOSSDriver extends EventEmitter { const ieeeAddr = result.payload.ieee; result = await this.execCommand(CommandId.GET_EXTENDED_PAN_ID, {}); - const extendedPanID = result.payload.extendedPanID; + // TODO: bug in extendedPanID - got reversed value + const extendedPanID = result.payload.extendedPanID.reverse(); result = await this.execCommand(CommandId.GET_PAN_ID, {}); const panID = result.payload.panID;