From 0e4f387e963e69ef160b6f44e90fef026f753354 Mon Sep 17 00:00:00 2001 From: Kirov Ilya Date: Wed, 8 Aug 2018 21:25:42 +0300 Subject: [PATCH] Fixed device pairing through router --- lib/components/controller.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/components/controller.js b/lib/components/controller.js index 3c3b2212..56f1db6d 100644 --- a/lib/components/controller.js +++ b/lib/components/controller.js @@ -111,8 +111,11 @@ function Controller(shepherd, cfg) { } const data = {srcaddr: tcData.nwkaddr, nwkaddr: tcData.nwkaddr, ieeeaddr: tcdata.extaddr, capabilities: {}}; if (self._spinLock) { - self._joinQueue.push(function () { - self.endDeviceAnnceHdlr(data); + self._joinQueue.push({ + func: function () { + self.endDeviceAnnceHdlr(data); + }, + ieeeAddr: data.ieeeaddr }); } else { self._spinLock = true;