Allow already connected devices to rejoin. #1294 #1334

This commit is contained in:
Koen Kanters 2019-03-29 19:18:15 +01:00
parent de4f9f44fd
commit c737f569f9

View File

@ -107,7 +107,12 @@ class Zigbee {
callback(null, true);
}
} else {
callback(null, false);
if (this.getAllClients().find((d) => d.ieeeAddr === devInfo.ieeeAddr)) {
// Allow already connected devices to rejoin.
callback(null, true);
} else {
callback(null, false);
}
}
}