diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html
index e00bf23..9b1ddbc 100644
--- a/docs/BoostMoveHub.html
+++ b/docs/BoostMoveHub.html
@@ -5585,7 +5585,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index ab4b982..726b567 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -4188,7 +4188,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/Hub.html b/docs/Hub.html
index 3a58ded..9bccef9 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -2467,7 +2467,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index 102b69a..f7a5dbe 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -4444,7 +4444,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/PUPHub.html b/docs/PUPHub.html
index 2893928..67a513e 100644
--- a/docs/PUPHub.html
+++ b/docs/PUPHub.html
@@ -5157,7 +5157,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html
index 897469c..60db50b 100644
--- a/docs/PUPRemote.html
+++ b/docs/PUPRemote.html
@@ -3409,7 +3409,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html
index 785d1b8..637fa53 100644
--- a/docs/PoweredUP.html
+++ b/docs/PoweredUP.html
@@ -316,7 +316,7 @@
@@ -427,7 +427,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
+
+ -
+ Type
+
+ -
+
+Array.<Hub>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getConnectedHubsByName(name)
+
+
+
+
+
+
+
+
Retrieve a Powered UP Hub by name.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ name |
+
+
+
+
+
+string
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -781,7 +939,7 @@
@@ -860,7 +1018,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index 2ee2d47..1c51c5f 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -5046,7 +5046,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html
index 4e44f29..313eb8d 100644
--- a/docs/boostmovehub.js.html
+++ b/docs/boostmovehub.js.html
@@ -349,7 +349,7 @@ exports.BoostMoveHub = BoostMoveHub;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/classes.list.html b/docs/classes.list.html
index 07aa952..52e9ed0 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -3853,7 +3853,7 @@
@@ -6681,7 +6681,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/consts.js.html b/docs/consts.js.html
index 26b23d6..f2db81a 100644
--- a/docs/consts.js.html
+++ b/docs/consts.js.html
@@ -277,7 +277,7 @@ var BLECharacteristic;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html
index ff07e28..d03c8c7 100644
--- a/docs/duplotrainbase.js.html
+++ b/docs/duplotrainbase.js.html
@@ -298,7 +298,7 @@ exports.DuploTrainBase = DuploTrainBase;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/global.html b/docs/global.html
index 32c803b..c1fe86c 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -3272,7 +3272,7 @@
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/hub.js.html b/docs/hub.js.html
index 6e87558..a8ac21a 100644
--- a/docs/hub.js.html
+++ b/docs/hub.js.html
@@ -485,7 +485,7 @@ exports.Hub = Hub;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/index.html b/docs/index.html
index 01892ee..4d78a12 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -314,7 +314,7 @@ poweredUP.scan(); // Start scanning for HubsMore examples are av
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html
index 13e4890..a689fa7 100644
--- a/docs/lpf2hub.js.html
+++ b/docs/lpf2hub.js.html
@@ -507,7 +507,7 @@ exports.LPF2Hub = LPF2Hub;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/poweredup.js.html b/docs/poweredup.js.html
index 760296d..c71f8ce 100644
--- a/docs/poweredup.js.html
+++ b/docs/poweredup.js.html
@@ -165,6 +165,14 @@ class PoweredUP extends events_1.EventEmitter {
}
noble.stopScanning();
}
+ /**
+ * Retrieve a list of Powered UP Hubs.
+ * @method PoweredUP#getConnectedHubs
+ * @returns {Hub[]}
+ */
+ getConnectedHubs() {
+ return Object.keys(this._connectedHubs).map((uuid) => this._connectedHubs[uuid]);
+ }
/**
* Retrieve a Powered UP Hub by UUID.
* @method PoweredUP#getConnectedHubByUUID
@@ -175,12 +183,13 @@ class PoweredUP extends events_1.EventEmitter {
return this._connectedHubs[uuid];
}
/**
- * Retrieve a list of Powered UP Hubs.
- * @method PoweredUP#getConnectedHubs
+ * Retrieve a Powered UP Hub by name.
+ * @method PoweredUP#getConnectedHubsByName
+ * @param {string} name
* @returns {Hub[]}
*/
- getConnectedHubs() {
- return Object.keys(this._connectedHubs).map((uuid) => this._connectedHubs[uuid]);
+ getConnectedHubsByName(name) {
+ return Object.keys(this._connectedHubs).map((uuid) => this._connectedHubs[uuid]).filter((hub) => hub.name === name);
}
async _discoveryEventHandler(peripheral) {
let hub;
@@ -275,7 +284,7 @@ exports.PoweredUP = PoweredUP;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/puphub.js.html b/docs/puphub.js.html
index e207259..e7cfe9c 100644
--- a/docs/puphub.js.html
+++ b/docs/puphub.js.html
@@ -306,7 +306,7 @@ exports.PUPHub = PUPHub;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html
index f39e918..d80c6fe 100644
--- a/docs/pupremote.js.html
+++ b/docs/pupremote.js.html
@@ -236,7 +236,7 @@ exports.PUPRemote = PUPRemote;
Documentation generated by JSDoc 3.5.5
- on Wed Jan 30th 2019
+ on Fri Feb 1st 2019
using the DocStrap template.
diff --git a/docs/quicksearch.html b/docs/quicksearch.html
index eee9cc0..0a83535 100644
--- a/docs/quicksearch.html
+++ b/docs/quicksearch.html
@@ -7,7 +7,7 @@