diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html index 41ea8bb..fdb0003 100644 --- a/docs/BoostMoveHub.html +++ b/docs/BoostMoveHub.html @@ -1376,7 +1376,7 @@ @@ -1502,7 +1502,7 @@ @@ -1674,7 +1674,7 @@ @@ -3499,7 +3499,7 @@ @@ -3719,7 +3719,7 @@ @@ -3895,7 +3895,7 @@ @@ -4072,7 +4072,7 @@ @@ -4280,7 +4280,7 @@ @@ -4969,7 +4969,7 @@ @@ -5585,7 +5585,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index 28bf8e4..7ce2fbe 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -1376,7 +1376,7 @@ @@ -1502,7 +1502,7 @@ @@ -1674,7 +1674,7 @@ @@ -3162,7 +3162,7 @@ @@ -3382,7 +3382,7 @@ @@ -3558,7 +3558,7 @@ @@ -3735,7 +3735,7 @@ @@ -4188,7 +4188,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/Hub.html b/docs/Hub.html index 399164b..1d43619 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -1096,7 +1096,7 @@ @@ -1208,7 +1208,7 @@ @@ -1366,7 +1366,7 @@ @@ -1525,7 +1525,7 @@ @@ -1731,7 +1731,7 @@ @@ -1893,7 +1893,7 @@ @@ -2056,7 +2056,7 @@ @@ -2250,7 +2250,7 @@ @@ -2388,7 +2388,7 @@ @@ -2467,7 +2467,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index 4323086..ccda6e6 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -1173,7 +1173,7 @@ @@ -1294,7 +1294,7 @@ @@ -1461,7 +1461,7 @@ @@ -2275,7 +2275,7 @@ @@ -2490,7 +2490,7 @@ @@ -2661,7 +2661,7 @@ @@ -2833,7 +2833,7 @@ @@ -3036,7 +3036,7 @@ @@ -3693,7 +3693,7 @@ @@ -4444,7 +4444,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/PUPHub.html b/docs/PUPHub.html index 86b0c35..5870be1 100644 --- a/docs/PUPHub.html +++ b/docs/PUPHub.html @@ -1376,7 +1376,7 @@ @@ -1502,7 +1502,7 @@ @@ -1674,7 +1674,7 @@ @@ -3242,7 +3242,7 @@ @@ -3462,7 +3462,7 @@ @@ -3638,7 +3638,7 @@ @@ -3815,7 +3815,7 @@ @@ -4023,7 +4023,7 @@ @@ -4712,7 +4712,7 @@ @@ -5157,7 +5157,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html index eb46b05..d2140bc 100644 --- a/docs/PUPRemote.html +++ b/docs/PUPRemote.html @@ -1214,7 +1214,7 @@ @@ -1340,7 +1340,7 @@ @@ -1512,7 +1512,7 @@ @@ -2359,7 +2359,7 @@ @@ -2579,7 +2579,7 @@ @@ -2755,7 +2755,7 @@ @@ -2932,7 +2932,7 @@ @@ -3409,7 +3409,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html index 7bc0355..2f14ab3 100644 --- a/docs/PoweredUP.html +++ b/docs/PoweredUP.html @@ -1018,7 +1018,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index 3612b05..33d4cdf 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -1339,7 +1339,7 @@ @@ -1460,7 +1460,7 @@ @@ -1627,7 +1627,7 @@ @@ -3337,7 +3337,7 @@ @@ -3552,7 +3552,7 @@ @@ -3723,7 +3723,7 @@ @@ -3895,7 +3895,7 @@ @@ -4098,7 +4098,7 @@ @@ -4569,7 +4569,7 @@ @@ -5158,7 +5158,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html index 4fa2dea..eb89251 100644 --- a/docs/boostmovehub.js.html +++ b/docs/boostmovehub.js.html @@ -351,7 +351,7 @@ exports.BoostMoveHub = BoostMoveHub; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/classes.list.html b/docs/classes.list.html index b3749a3..32bd40b 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -335,7 +335,7 @@ @@ -1024,7 +1024,7 @@ @@ -2065,7 +2065,7 @@ @@ -2203,7 +2203,7 @@ @@ -2374,7 +2374,7 @@ @@ -3031,7 +3031,7 @@ @@ -4029,7 +4029,7 @@ @@ -4718,7 +4718,7 @@ @@ -5621,7 +5621,7 @@ @@ -6092,7 +6092,7 @@ @@ -6681,7 +6681,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/consts.js.html b/docs/consts.js.html index ee40a49..6b6ca33 100644 --- a/docs/consts.js.html +++ b/docs/consts.js.html @@ -282,7 +282,7 @@ var BLECharacteristic; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html index 6091e16..4838532 100644 --- a/docs/duplotrainbase.js.html +++ b/docs/duplotrainbase.js.html @@ -300,7 +300,7 @@ exports.DuploTrainBase = DuploTrainBase; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/global.html b/docs/global.html index af0009d..8a9f2ed 100644 --- a/docs/global.html +++ b/docs/global.html @@ -3272,7 +3272,7 @@ Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/hub.js.html b/docs/hub.js.html index b0f8741..e636b96 100644 --- a/docs/hub.js.html +++ b/docs/hub.js.html @@ -174,11 +174,12 @@ class Hub extends events_1.EventEmitter { * @returns {Promise} Resolved upon successful connect. */ connect() { + console.log(this.name); return new Promise(async (connectResolve, connectReject) => { - if (this._isConnecting) { + if (this._bleDevice.connecting) { return connectReject("Already connecting"); } - else if (this._isConnected) { + else if (this._bleDevice.connected) { return connectReject("Already connected"); } this._isConnecting = true; @@ -445,7 +446,7 @@ exports.Hub = Hub; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index 0a9385e..61d13c7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -314,7 +314,7 @@ poweredUP.scan(); // Start scanning for Hubs

More examples are av Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html index 7cb292d..75ca22f 100644 --- a/docs/lpf2hub.js.html +++ b/docs/lpf2hub.js.html @@ -505,7 +505,7 @@ exports.LPF2Hub = LPF2Hub; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/poweredup-node.js.html b/docs/poweredup-node.js.html index f8ff746..36d4fa6 100644 --- a/docs/poweredup-node.js.html +++ b/docs/poweredup-node.js.html @@ -286,7 +286,7 @@ exports.PoweredUP = PoweredUP; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/puphub.js.html b/docs/puphub.js.html index 095b652..c3cbbcb 100644 --- a/docs/puphub.js.html +++ b/docs/puphub.js.html @@ -308,7 +308,7 @@ exports.PUPHub = PUPHub; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html index 7ded315..45428d1 100644 --- a/docs/pupremote.js.html +++ b/docs/pupremote.js.html @@ -238,7 +238,7 @@ exports.PUPRemote = PUPRemote; Documentation generated by JSDoc 3.5.5 - on Wed Feb 6th 2019 + on Thu Feb 7th 2019 using the DocStrap template. diff --git a/docs/quicksearch.html b/docs/quicksearch.html index 8f2491a..ff24e3a 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@