diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html
index e7b07b8..41c0681 100644
--- a/docs/BoostMoveHub.html
+++ b/docs/BoostMoveHub.html
@@ -1257,7 +1257,7 @@
@@ -2037,7 +2037,7 @@
@@ -2199,7 +2199,7 @@
@@ -2456,7 +2456,7 @@
@@ -3084,7 +3084,7 @@
@@ -3341,7 +3341,7 @@
@@ -3582,7 +3582,7 @@
@@ -6722,7 +6722,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/ControlPlusHub.html b/docs/ControlPlusHub.html
index b7b98c8..b725c88 100644
--- a/docs/ControlPlusHub.html
+++ b/docs/ControlPlusHub.html
@@ -1257,7 +1257,7 @@
@@ -2037,7 +2037,7 @@
@@ -2199,7 +2199,7 @@
@@ -2456,7 +2456,7 @@
@@ -3084,7 +3084,7 @@
@@ -3341,7 +3341,7 @@
@@ -3582,7 +3582,7 @@
@@ -6722,7 +6722,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index 385ade6..d1d7652 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -1257,7 +1257,7 @@
@@ -1965,7 +1965,7 @@
@@ -2199,7 +2199,7 @@
@@ -2366,7 +2366,7 @@
@@ -2826,7 +2826,7 @@
@@ -5966,7 +5966,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/Hub.html b/docs/Hub.html
index 4db622b..6a6e706 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -2586,7 +2586,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index dd8ff08..f14e092 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -4968,7 +4968,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/PUPHub.html b/docs/PUPHub.html
index 99959e5..7cb19ee 100644
--- a/docs/PUPHub.html
+++ b/docs/PUPHub.html
@@ -1257,7 +1257,7 @@
@@ -2037,7 +2037,7 @@
@@ -2199,7 +2199,7 @@
@@ -2456,7 +2456,7 @@
@@ -3084,7 +3084,7 @@
@@ -3341,7 +3341,7 @@
@@ -3582,7 +3582,7 @@
@@ -6722,7 +6722,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html
index 3ba683c..6c93385 100644
--- a/docs/PUPRemote.html
+++ b/docs/PUPRemote.html
@@ -1808,7 +1808,7 @@
@@ -2023,7 +2023,7 @@
@@ -5163,7 +5163,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html
index 91e99a4..be9fd64 100644
--- a/docs/PoweredUP.html
+++ b/docs/PoweredUP.html
@@ -1021,7 +1021,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index 781c503..8a75840 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -5286,7 +5286,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html
index ab06c81..53cc6e8 100644
--- a/docs/boostmovehub.js.html
+++ b/docs/boostmovehub.js.html
@@ -112,7 +112,10 @@ class BoostMoveHub extends lpf2hub_1.LPF2Hub {
static IsBoostMoveHub(peripheral) {
return (peripheral.advertisement &&
peripheral.advertisement.serviceUuids &&
- peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 && peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.BOOST_MOVE_HUB_ID);
+ peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 &&
+ peripheral.advertisement.manufacturerData &&
+ peripheral.advertisement.manufacturerData.length > 3 &&
+ peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.BOOST_MOVE_HUB_ID);
}
constructor(device, autoSubscribe = true) {
super(device, autoSubscribe);
@@ -418,7 +421,7 @@ exports.BoostMoveHub = BoostMoveHub;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/classes.list.html b/docs/classes.list.html
index 9f8e050..efdcec9 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -13677,7 +13677,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/consts.js.html b/docs/consts.js.html
index adcfce9..c85c506 100644
--- a/docs/consts.js.html
+++ b/docs/consts.js.html
@@ -307,7 +307,7 @@ var BLECharacteristic;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/controlplushub.js.html b/docs/controlplushub.js.html
index 1d2cbb1..980f075 100644
--- a/docs/controlplushub.js.html
+++ b/docs/controlplushub.js.html
@@ -108,7 +108,10 @@ class ControlPlusHub extends lpf2hub_1.LPF2Hub {
static IsControlPlusHub(peripheral) {
return (peripheral.advertisement &&
peripheral.advertisement.serviceUuids &&
- peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 && peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.CONTROL_PLUS_LARGE_HUB);
+ peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 &&
+ peripheral.advertisement.manufacturerData &&
+ peripheral.advertisement.manufacturerData.length > 3 &&
+ peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.CONTROL_PLUS_LARGE_HUB);
}
constructor(device, autoSubscribe = true) {
super(device, autoSubscribe);
@@ -408,7 +411,7 @@ exports.ControlPlusHub = ControlPlusHub;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html
index ce08cc2..1598cb2 100644
--- a/docs/duplotrainbase.js.html
+++ b/docs/duplotrainbase.js.html
@@ -108,7 +108,10 @@ class DuploTrainBase extends lpf2hub_1.LPF2Hub {
static IsDuploTrainBase(peripheral) {
return (peripheral.advertisement &&
peripheral.advertisement.serviceUuids &&
- peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 && peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.DUPLO_TRAIN_HUB_ID);
+ peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 &&
+ peripheral.advertisement.manufacturerData &&
+ peripheral.advertisement.manufacturerData.length > 3 &&
+ peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.DUPLO_TRAIN_HUB_ID);
}
constructor(device, autoSubscribe = true) {
super(device, autoSubscribe);
@@ -271,7 +274,7 @@ exports.DuploTrainBase = DuploTrainBase;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/global.html b/docs/global.html
index 301b15e..4e96785 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -3416,7 +3416,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/hub.js.html b/docs/hub.js.html
index 0d68a6f..3820eea 100644
--- a/docs/hub.js.html
+++ b/docs/hub.js.html
@@ -462,7 +462,7 @@ exports.Hub = Hub;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/index.html b/docs/index.html
index 5f2ae29..6e9dd48 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -360,7 +360,7 @@ console.log("Scanning for Hubs...");
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html
index d81b642..1f31e12 100644
--- a/docs/lpf2hub.js.html
+++ b/docs/lpf2hub.js.html
@@ -659,7 +659,7 @@ exports.LPF2Hub = LPF2Hub;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/poweredup-node.js.html b/docs/poweredup-node.js.html
index 6d3ef37..2c5fd0e 100644
--- a/docs/poweredup-node.js.html
+++ b/docs/poweredup-node.js.html
@@ -96,7 +96,7 @@ const wedo2smarthub_1 = require("./wedo2smarthub");
const events_1 = require("events");
const Debug = require("debug");
const debug = Debug("poweredup");
-const noble = require("noble-mac");
+const noble = require("@abandonware/noble");
let ready = false;
let wantScan = false;
let discoveryEventAttached = false;
@@ -273,7 +273,7 @@ exports.PoweredUP = PoweredUP;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/puphub.js.html b/docs/puphub.js.html
index 17bcef1..238efff 100644
--- a/docs/puphub.js.html
+++ b/docs/puphub.js.html
@@ -112,7 +112,10 @@ class PUPHub extends lpf2hub_1.LPF2Hub {
static IsPUPHub(peripheral) {
return (peripheral.advertisement &&
peripheral.advertisement.serviceUuids &&
- peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 && peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.POWERED_UP_HUB_ID);
+ peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 &&
+ peripheral.advertisement.manufacturerData &&
+ peripheral.advertisement.manufacturerData.length > 3 &&
+ peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.POWERED_UP_HUB_ID);
}
constructor(device, autoSubscribe = true) {
super(device, autoSubscribe);
@@ -412,7 +415,7 @@ exports.PUPHub = PUPHub;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html
index 7405830..cc56642 100644
--- a/docs/pupremote.js.html
+++ b/docs/pupremote.js.html
@@ -108,7 +108,10 @@ class PUPRemote extends lpf2hub_1.LPF2Hub {
static IsPUPRemote(peripheral) {
return (peripheral.advertisement &&
peripheral.advertisement.serviceUuids &&
- peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 && peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.POWERED_UP_REMOTE_ID);
+ peripheral.advertisement.serviceUuids.indexOf(Consts.BLEService.LPF2_HUB.replace(/-/g, "")) >= 0 &&
+ peripheral.advertisement.manufacturerData &&
+ peripheral.advertisement.manufacturerData.length > 3 &&
+ peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.POWERED_UP_REMOTE_ID);
}
constructor(device, autoSubscribe = true) {
super(device, autoSubscribe);
@@ -209,7 +212,7 @@ exports.PUPRemote = PUPRemote;
Documentation generated by JSDoc 3.6.3
- on Fri Aug 9th 2019
+ on Sun Nov 10th 2019
using the DocStrap template.
diff --git a/docs/quicksearch.html b/docs/quicksearch.html
index e3e226a..6e1a8d6 100644
--- a/docs/quicksearch.html
+++ b/docs/quicksearch.html
@@ -7,7 +7,7 @@