From 1dc583e5f239b0b55ba1c9f4b4177cd20ed9dae9 Mon Sep 17 00:00:00 2001 From: Nathan Kellenicki Date: Thu, 25 Apr 2019 14:25:10 -0700 Subject: [PATCH] Added current back --- docs/BoostMoveHub.html | 135 +++++++++++++++++++++++++++++++++++- docs/DuploTrainBase.html | 135 +++++++++++++++++++++++++++++++++++- docs/Hub.html | 121 +++++++++++++++++++++++++++++++- docs/LPF2Hub.html | 130 +++++++++++++++++++++++++++++++++- docs/PUPHub.html | 135 +++++++++++++++++++++++++++++++++++- docs/PUPRemote.html | 135 +++++++++++++++++++++++++++++++++++- docs/PoweredUP.html | 2 +- docs/WeDo2SmartHub.html | 130 +++++++++++++++++++++++++++++++++- docs/boostmovehub.js.html | 2 +- docs/classes.list.html | 2 +- docs/consts.js.html | 2 +- docs/duplotrainbase.js.html | 2 +- docs/global.html | 2 +- docs/hub.js.html | 16 ++--- docs/index.html | 2 +- docs/lpf2hub.js.html | 2 +- docs/poweredup-node.js.html | 2 +- docs/puphub.js.html | 2 +- docs/pupremote.js.html | 2 +- docs/quicksearch.html | 2 +- docs/wedo2smarthub.js.html | 2 +- package-lock.json | 2 +- package.json | 2 +- src/hub.ts | 14 ++-- 24 files changed, 944 insertions(+), 37 deletions(-) diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html index a67cae6..31b4772 100644 --- a/docs/BoostMoveHub.html +++ b/docs/BoostMoveHub.html @@ -338,6 +338,139 @@ + + + + + + + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -5585,7 +5718,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index b701d61..7bba2aa 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -338,6 +338,139 @@ + + + + +
+ + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -4188,7 +4321,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/Hub.html b/docs/Hub.html index 48b0589..c2f750b 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -318,6 +318,125 @@ + + + + +
+ + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -2467,7 +2586,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index 610406c..74b018b 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -327,6 +327,134 @@ + + + + +
+ + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -4444,7 +4572,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/PUPHub.html b/docs/PUPHub.html index a58c98f..a9ee190 100644 --- a/docs/PUPHub.html +++ b/docs/PUPHub.html @@ -338,6 +338,139 @@ + + + + +
+ + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -5414,7 +5547,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html index c724efe..e251a21 100644 --- a/docs/PUPRemote.html +++ b/docs/PUPRemote.html @@ -338,6 +338,139 @@ + + + + +
+ + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + +
Overrides:
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -3409,7 +3542,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html index 41a2c81..c422cdd 100644 --- a/docs/PoweredUP.html +++ b/docs/PoweredUP.html @@ -1018,7 +1018,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index 7c6787c..51e7ebe 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -331,6 +331,134 @@ + + + + +
+ + + +
+
+

<readonly> current

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
current + + +number + + + + +

Current usage of the hub (Amps)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
@@ -5158,7 +5286,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/boostmovehub.js.html b/docs/boostmovehub.js.html index 22e24c9..4982bbc 100644 --- a/docs/boostmovehub.js.html +++ b/docs/boostmovehub.js.html @@ -353,7 +353,7 @@ exports.BoostMoveHub = BoostMoveHub; Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/classes.list.html b/docs/classes.list.html index 20b02bd..ee3e3c9 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -6681,7 +6681,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/consts.js.html b/docs/consts.js.html index ed67f39..9fd3d05 100644 --- a/docs/consts.js.html +++ b/docs/consts.js.html @@ -300,7 +300,7 @@ var BLECharacteristic; Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/duplotrainbase.js.html b/docs/duplotrainbase.js.html index 76ff21c..a46cb96 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 Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/global.html b/docs/global.html index b74c789..8bca4cf 100644 --- a/docs/global.html +++ b/docs/global.html @@ -3272,7 +3272,7 @@ Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/hub.js.html b/docs/hub.js.html index 0f3b72d..52b6441 100644 --- a/docs/hub.js.html +++ b/docs/hub.js.html @@ -165,13 +165,13 @@ class Hub extends events_1.EventEmitter { get voltage() { return this._voltage; } - // /** - // * @readonly - // * @property {number} current Current usage of the hub (Amps) - // */ - // public get current () { - // return this._current; - // } + /** + * @readonly + * @property {number} current Current usage of the hub (Amps) + */ + get current() { + return this._current; + } /** * Connect to the Hub. * @method Hub#connect @@ -458,7 +458,7 @@ exports.Hub = Hub; Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index 449439b..8761190 100644 --- a/docs/index.html +++ b/docs/index.html @@ -308,7 +308,7 @@ console.log("Scanning for Hubs...");

More examples are Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/lpf2hub.js.html b/docs/lpf2hub.js.html index 257c962..ab6e48b 100644 --- a/docs/lpf2hub.js.html +++ b/docs/lpf2hub.js.html @@ -546,7 +546,7 @@ exports.LPF2Hub = LPF2Hub; Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/poweredup-node.js.html b/docs/poweredup-node.js.html index 72c800f..9f06d94 100644 --- a/docs/poweredup-node.js.html +++ b/docs/poweredup-node.js.html @@ -269,7 +269,7 @@ exports.PoweredUP = PoweredUP; Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/puphub.js.html b/docs/puphub.js.html index 9fded74..739a8d2 100644 --- a/docs/puphub.js.html +++ b/docs/puphub.js.html @@ -363,7 +363,7 @@ exports.PUPHub = PUPHub; Documentation generated by JSDoc 3.5.5 - on Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/pupremote.js.html b/docs/pupremote.js.html index 2c3b6cb..12f0497 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 Mon Apr 15th 2019 + on Thu Apr 25th 2019 using the DocStrap template. diff --git a/docs/quicksearch.html b/docs/quicksearch.html index 9a063bb..8503340 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@