diff --git a/docs/BaseHub.html b/docs/BaseHub.html
index 77d5212..a96b56a 100644
--- a/docs/BaseHub.html
+++ b/docs/BaseHub.html
@@ -316,7 +316,249 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -437,7 +679,7 @@
-
@@ -558,7 +800,7 @@
-
@@ -800,7 +1042,7 @@
-
@@ -921,7 +1163,7 @@
-
@@ -1042,7 +1284,7 @@
-
@@ -1163,7 +1405,7 @@
-
@@ -1284,7 +1526,7 @@
-
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index 26b95a6..9cded21 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -331,7 +331,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Inherited From:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Inherited From:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -461,7 +721,7 @@
-
@@ -591,7 +851,7 @@
-
@@ -851,7 +1111,7 @@
-
@@ -981,7 +1241,7 @@
-
@@ -1111,7 +1371,7 @@
-
@@ -1241,7 +1501,7 @@
-
@@ -1371,7 +1631,7 @@
-
diff --git a/docs/Hub.html b/docs/Hub.html
index 9967132..afd460b 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -331,7 +331,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -461,7 +721,7 @@
-
@@ -591,7 +851,7 @@
-
@@ -851,7 +1111,7 @@
-
@@ -981,7 +1241,7 @@
-
@@ -1111,7 +1371,7 @@
-
@@ -1241,7 +1501,7 @@
-
@@ -1371,7 +1631,7 @@
-
@@ -1461,7 +1721,7 @@
-
@@ -1737,7 +1997,7 @@
-
@@ -1883,7 +2143,7 @@
-
@@ -1974,7 +2234,7 @@
-
@@ -2120,7 +2380,7 @@
-
@@ -2522,7 +2782,7 @@
-
@@ -2669,7 +2929,7 @@
-
@@ -2816,7 +3076,7 @@
-
@@ -2963,7 +3223,7 @@
-
@@ -3117,7 +3377,7 @@
-
@@ -3447,7 +3707,7 @@
-
@@ -3818,7 +4078,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -3948,7 +4468,7 @@
-
@@ -4078,7 +4598,7 @@
-
@@ -4338,7 +4858,7 @@
-
@@ -4468,7 +4988,7 @@
-
@@ -4598,7 +5118,7 @@
-
@@ -4728,7 +5248,7 @@
-
@@ -4858,7 +5378,7 @@
-
@@ -4948,7 +5468,7 @@
-
@@ -5224,7 +5744,7 @@
-
@@ -5370,7 +5890,7 @@
-
@@ -5461,7 +5981,7 @@
-
@@ -5607,7 +6127,7 @@
-
@@ -6009,7 +6529,7 @@
-
@@ -6156,7 +6676,7 @@
-
@@ -6303,7 +6823,7 @@
-
@@ -6450,7 +6970,7 @@
-
@@ -6604,7 +7124,7 @@
-
@@ -6934,7 +7454,7 @@
-
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index 3f60c5e..11a8cdd 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -325,7 +325,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Inherited From:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Inherited From:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -455,7 +715,7 @@
-
@@ -585,7 +845,7 @@
-
@@ -845,7 +1105,7 @@
-
@@ -975,7 +1235,7 @@
-
@@ -1105,7 +1365,7 @@
-
@@ -1235,7 +1495,7 @@
-
@@ -1365,7 +1625,7 @@
-
diff --git a/docs/Mario.html b/docs/Mario.html
index adc3aab..43e5da5 100644
--- a/docs/Mario.html
+++ b/docs/Mario.html
@@ -331,7 +331,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -461,7 +721,7 @@
-
@@ -591,7 +851,7 @@
-
@@ -851,7 +1111,7 @@
-
@@ -981,7 +1241,7 @@
-
@@ -1111,7 +1371,7 @@
-
@@ -1241,7 +1501,7 @@
-
@@ -1371,7 +1631,7 @@
-
diff --git a/docs/MoveHub.html b/docs/MoveHub.html
index bea3f6d..afbfeb9 100644
--- a/docs/MoveHub.html
+++ b/docs/MoveHub.html
@@ -331,7 +331,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -461,7 +721,7 @@
-
@@ -591,7 +851,7 @@
-
@@ -851,7 +1111,7 @@
-
@@ -981,7 +1241,7 @@
-
@@ -1111,7 +1371,7 @@
-
@@ -1241,7 +1501,7 @@
-
@@ -1371,7 +1631,7 @@
-
diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html
index bc7369f..6541f97 100644
--- a/docs/RemoteControl.html
+++ b/docs/RemoteControl.html
@@ -331,7 +331,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -461,7 +721,7 @@
-
@@ -591,7 +851,7 @@
-
@@ -851,7 +1111,7 @@
-
@@ -981,7 +1241,7 @@
-
@@ -1111,7 +1371,7 @@
-
@@ -1241,7 +1501,7 @@
-
@@ -1371,7 +1631,7 @@
-
diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html
index fd0278f..b2cdf22 100644
--- a/docs/TechnicMediumHub.html
+++ b/docs/TechnicMediumHub.html
@@ -331,7 +331,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Overrides:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -461,7 +721,7 @@
-
@@ -591,7 +851,7 @@
-
@@ -851,7 +1111,7 @@
-
@@ -981,7 +1241,7 @@
-
@@ -1111,7 +1371,7 @@
-
@@ -1241,7 +1501,7 @@
-
@@ -1371,7 +1631,7 @@
-
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index 3128113..62a7590 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -329,7 +329,267 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connected
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connected |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connected status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Inherited From:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ (readonly) connecting
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ connecting |
+
+
+
+
+
+
+ string
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ Connecting status
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Inherited From:
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+ -
+
@@ -459,7 +719,7 @@
-
@@ -589,7 +849,7 @@
-
@@ -849,7 +1109,7 @@
-
@@ -979,7 +1239,7 @@
-
@@ -1109,7 +1369,7 @@
-
@@ -1239,7 +1499,7 @@
-
@@ -1369,7 +1629,7 @@
-
diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html
index 1e617a9..f34b534 100644
--- a/docs/hubs_basehub.js.html
+++ b/docs/hubs_basehub.js.html
@@ -186,6 +186,20 @@ class BaseHub extends events_1.EventEmitter {
get name() {
return this._bleDevice.name;
}
+ /**
+ * @readonly
+ * @property {string} connected Connected status
+ */
+ get connected() {
+ return this._bleDevice.connected;
+ }
+ /**
+ * @readonly
+ * @property {string} connecting Connecting status
+ */
+ get connecting() {
+ return this._bleDevice.connecting;
+ }
/**
* @readonly
* @property {string} type Hub type
diff --git a/package-lock.json b/package-lock.json
index 119de1a..0d7bbc6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "node-poweredup",
- "version": "8.0.2",
+ "version": "8.0.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "node-poweredup",
- "version": "8.0.2",
+ "version": "8.0.3",
"license": "MIT",
"dependencies": {
"@abandonware/noble": "1.9.2-15",
diff --git a/package.json b/package.json
index aef8cb9..048c275 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "node-poweredup",
- "version": "8.0.2",
+ "version": "8.0.3",
"description": "A Javascript module to interface with LEGO Powered Up components.",
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
"main": "dist/node/index-node.js",
diff --git a/src/hubs/basehub.ts b/src/hubs/basehub.ts
index 8a5b522..90a8aba 100644
--- a/src/hubs/basehub.ts
+++ b/src/hubs/basehub.ts
@@ -92,6 +92,24 @@ export class BaseHub extends EventEmitter {
}
+ /**
+ * @readonly
+ * @property {string} connected Connected status
+ */
+ public get connected () {
+ return this._bleDevice.connected;
+ }
+
+
+ /**
+ * @readonly
+ * @property {string} connecting Connecting status
+ */
+ public get connecting () {
+ return this._bleDevice.connecting;
+ }
+
+
/**
* @readonly
* @property {string} type Hub type