diff --git a/docs/AbsoluteMotor.html b/docs/AbsoluteMotor.html
index cc4d374..1908f74 100644
--- a/docs/AbsoluteMotor.html
+++ b/docs/AbsoluteMotor.html
@@ -1993,13 +1993,13 @@
diff --git a/docs/BaseHub.html b/docs/BaseHub.html
index 8354798..0047b62 100644
--- a/docs/BaseHub.html
+++ b/docs/BaseHub.html
@@ -1376,13 +1376,13 @@
diff --git a/docs/BasicMotor.html b/docs/BasicMotor.html
index 7d6947c..961a8ba 100644
--- a/docs/BasicMotor.html
+++ b/docs/BasicMotor.html
@@ -1444,13 +1444,13 @@
diff --git a/docs/ColorDistanceSensor.html b/docs/ColorDistanceSensor.html
index 5786aa0..586e297 100644
--- a/docs/ColorDistanceSensor.html
+++ b/docs/ColorDistanceSensor.html
@@ -3010,13 +3010,13 @@
diff --git a/docs/CurrentSensor.html b/docs/CurrentSensor.html
index 06aef4f..76a853b 100644
--- a/docs/CurrentSensor.html
+++ b/docs/CurrentSensor.html
@@ -1007,13 +1007,13 @@
diff --git a/docs/Device.html b/docs/Device.html
index e1138b6..06a956b 100644
--- a/docs/Device.html
+++ b/docs/Device.html
@@ -826,13 +826,13 @@
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index 74fb331..7a13a78 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -2077,13 +2077,13 @@
diff --git a/docs/DuploTrainBaseColorSensor.html b/docs/DuploTrainBaseColorSensor.html
index 2078ac3..f843c0d 100644
--- a/docs/DuploTrainBaseColorSensor.html
+++ b/docs/DuploTrainBaseColorSensor.html
@@ -1494,13 +1494,13 @@
diff --git a/docs/DuploTrainBaseMotor.html b/docs/DuploTrainBaseMotor.html
index df7fab4..4501677 100644
--- a/docs/DuploTrainBaseMotor.html
+++ b/docs/DuploTrainBaseMotor.html
@@ -1464,13 +1464,13 @@
diff --git a/docs/DuploTrainBaseSpeaker.html b/docs/DuploTrainBaseSpeaker.html
index 3cf630f..bbfe980 100644
--- a/docs/DuploTrainBaseSpeaker.html
+++ b/docs/DuploTrainBaseSpeaker.html
@@ -1178,13 +1178,13 @@
diff --git a/docs/DuploTraniBaseSpeedometer.html b/docs/DuploTraniBaseSpeedometer.html
index 5c5e3ef..53b74c6 100644
--- a/docs/DuploTraniBaseSpeedometer.html
+++ b/docs/DuploTraniBaseSpeedometer.html
@@ -856,13 +856,13 @@
diff --git a/docs/Hub.html b/docs/Hub.html
index 7efab58..d9090f6 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -7436,13 +7436,13 @@
diff --git a/docs/HubLED.html b/docs/HubLED.html
index 69e1c55..1477dc0 100644
--- a/docs/HubLED.html
+++ b/docs/HubLED.html
@@ -1224,13 +1224,13 @@
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index b804079..cd53f63 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -2051,13 +2051,13 @@
diff --git a/docs/Light.html b/docs/Light.html
index f437ea0..db8fbf9 100644
--- a/docs/Light.html
+++ b/docs/Light.html
@@ -1224,13 +1224,13 @@
diff --git a/docs/Mario.html b/docs/Mario.html
index 5a90a36..d82ccfd 100644
--- a/docs/Mario.html
+++ b/docs/Mario.html
@@ -2077,13 +2077,13 @@
diff --git a/docs/MarioAccelerometer.html b/docs/MarioAccelerometer.html
index 50c49d3..d5f30c5 100644
--- a/docs/MarioAccelerometer.html
+++ b/docs/MarioAccelerometer.html
@@ -1200,13 +1200,13 @@
diff --git a/docs/MarioBarcodeSensor.html b/docs/MarioBarcodeSensor.html
index 780ad9b..17f254b 100644
--- a/docs/MarioBarcodeSensor.html
+++ b/docs/MarioBarcodeSensor.html
@@ -1200,13 +1200,13 @@
diff --git a/docs/MarioPantsSensor.html b/docs/MarioPantsSensor.html
index 5be25c9..314c391 100644
--- a/docs/MarioPantsSensor.html
+++ b/docs/MarioPantsSensor.html
@@ -1007,13 +1007,13 @@
diff --git a/docs/MediumLinearMotor.html b/docs/MediumLinearMotor.html
index dd2444e..63ed5c5 100644
--- a/docs/MediumLinearMotor.html
+++ b/docs/MediumLinearMotor.html
@@ -1342,13 +1342,13 @@
diff --git a/docs/MotionSensor.html b/docs/MotionSensor.html
index 3c076aa..ce8772d 100644
--- a/docs/MotionSensor.html
+++ b/docs/MotionSensor.html
@@ -1007,13 +1007,13 @@
diff --git a/docs/MoveHub.html b/docs/MoveHub.html
index 0e31386..c5ed99a 100644
--- a/docs/MoveHub.html
+++ b/docs/MoveHub.html
@@ -2077,13 +2077,13 @@
diff --git a/docs/MoveHubMediumLinearMotor.html b/docs/MoveHubMediumLinearMotor.html
index 3f6ae18..38481e9 100644
--- a/docs/MoveHubMediumLinearMotor.html
+++ b/docs/MoveHubMediumLinearMotor.html
@@ -1342,13 +1342,13 @@
diff --git a/docs/MoveHubTiltSensor.html b/docs/MoveHubTiltSensor.html
index e3efb76..8d2ec67 100644
--- a/docs/MoveHubTiltSensor.html
+++ b/docs/MoveHubTiltSensor.html
@@ -1030,13 +1030,13 @@
diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html
index 50298e2..a97d404 100644
--- a/docs/PiezoBuzzer.html
+++ b/docs/PiezoBuzzer.html
@@ -1042,13 +1042,13 @@
diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html
index 55e4c14..8b0b8f2 100644
--- a/docs/PoweredUP.html
+++ b/docs/PoweredUP.html
@@ -1999,7 +1999,7 @@
Source:
@@ -4165,7 +4165,7 @@
Source:
@@ -4356,13 +4356,13 @@
diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html
index 10c1a48..1d5dfa9 100644
--- a/docs/RemoteControl.html
+++ b/docs/RemoteControl.html
@@ -2077,13 +2077,13 @@
diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html
index be5c266..b18fd02 100644
--- a/docs/RemoteControlButton.html
+++ b/docs/RemoteControlButton.html
@@ -854,7 +854,7 @@
-
+
@@ -1007,13 +1007,13 @@
diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html
index d690657..c1b426f 100644
--- a/docs/SimpleMediumLinearMotor.html
+++ b/docs/SimpleMediumLinearMotor.html
@@ -856,13 +856,13 @@
diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html
index 732753e..0656f95 100644
--- a/docs/TachoMotor.html
+++ b/docs/TachoMotor.html
@@ -2605,13 +2605,13 @@
diff --git a/docs/Technic3x3ColorLightMatrix.html b/docs/Technic3x3ColorLightMatrix.html
index 2b5a773..8795d1b 100644
--- a/docs/Technic3x3ColorLightMatrix.html
+++ b/docs/Technic3x3ColorLightMatrix.html
@@ -1022,13 +1022,13 @@
diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html
index 4485bab..8164d90 100644
--- a/docs/TechnicColorSensor.html
+++ b/docs/TechnicColorSensor.html
@@ -1510,13 +1510,13 @@
diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html
index 3f78954..9e8562b 100644
--- a/docs/TechnicDistanceSensor.html
+++ b/docs/TechnicDistanceSensor.html
@@ -1386,13 +1386,13 @@
diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html
index 6ef07cc..a0365d3 100644
--- a/docs/TechnicForceSensor.html
+++ b/docs/TechnicForceSensor.html
@@ -1301,13 +1301,13 @@
diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html
index d66a9f4..5f7a5a3 100644
--- a/docs/TechnicLargeAngularMotor.html
+++ b/docs/TechnicLargeAngularMotor.html
@@ -2013,13 +2013,13 @@
diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html
index a2ed6d6..5325c1a 100644
--- a/docs/TechnicLargeLinearMotor.html
+++ b/docs/TechnicLargeLinearMotor.html
@@ -2013,13 +2013,13 @@
diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html
index 0681b83..aa96551 100644
--- a/docs/TechnicMediumAngularMotor.html
+++ b/docs/TechnicMediumAngularMotor.html
@@ -2013,13 +2013,13 @@
diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html
index 8ab805a..57f2ccb 100644
--- a/docs/TechnicMediumHub.html
+++ b/docs/TechnicMediumHub.html
@@ -2077,13 +2077,13 @@
diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html
index c398f1f..570a040 100644
--- a/docs/TechnicMediumHubAccelerometerSensor.html
+++ b/docs/TechnicMediumHubAccelerometerSensor.html
@@ -1053,13 +1053,13 @@
diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html
index a48d1e0..d1d8e8b 100644
--- a/docs/TechnicMediumHubGyroSensor.html
+++ b/docs/TechnicMediumHubGyroSensor.html
@@ -1053,13 +1053,13 @@
diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html
index 5e3177b..d520c94 100644
--- a/docs/TechnicMediumHubTiltSensor.html
+++ b/docs/TechnicMediumHubTiltSensor.html
@@ -1681,13 +1681,13 @@
diff --git a/docs/TechnicSmallAngularMotor.html b/docs/TechnicSmallAngularMotor.html
index 562fe61..9be5bd1 100644
--- a/docs/TechnicSmallAngularMotor.html
+++ b/docs/TechnicSmallAngularMotor.html
@@ -2013,13 +2013,13 @@
diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html
index a95f09c..3247911 100644
--- a/docs/TechnicXLargeLinearMotor.html
+++ b/docs/TechnicXLargeLinearMotor.html
@@ -2013,13 +2013,13 @@
diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html
index ece94e8..3e2b49f 100644
--- a/docs/TiltSensor.html
+++ b/docs/TiltSensor.html
@@ -1030,13 +1030,13 @@
diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html
index ccdbe24..091acf5 100644
--- a/docs/TrainMotor.html
+++ b/docs/TrainMotor.html
@@ -1464,13 +1464,13 @@
diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html
index 22b90f7..165d8ae 100644
--- a/docs/VoltageSensor.html
+++ b/docs/VoltageSensor.html
@@ -1007,13 +1007,13 @@
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index 0a4fe9a..10f34d0 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -1872,13 +1872,13 @@
diff --git a/docs/consts.js.html b/docs/consts.js.html
index 6ddf218..282940c 100644
--- a/docs/consts.js.html
+++ b/docs/consts.js.html
@@ -713,13 +713,13 @@ var MarioColor;
diff --git a/docs/devices_absolutemotor.js.html b/docs/devices_absolutemotor.js.html
index 179f84d..ab9717a 100644
--- a/docs/devices_absolutemotor.js.html
+++ b/docs/devices_absolutemotor.js.html
@@ -180,13 +180,13 @@ exports.ModeMap = {
diff --git a/docs/devices_basicmotor.js.html b/docs/devices_basicmotor.js.html
index 1befbf1..cb18e67 100644
--- a/docs/devices_basicmotor.js.html
+++ b/docs/devices_basicmotor.js.html
@@ -123,13 +123,13 @@ exports.BasicMotor = BasicMotor;
diff --git a/docs/devices_colordistancesensor.js.html b/docs/devices_colordistancesensor.js.html
index 1a1d2c8..e611641 100644
--- a/docs/devices_colordistancesensor.js.html
+++ b/docs/devices_colordistancesensor.js.html
@@ -346,13 +346,13 @@ var Output;
diff --git a/docs/devices_currentsensor.js.html b/docs/devices_currentsensor.js.html
index 9fb2104..6da87e5 100644
--- a/docs/devices_currentsensor.js.html
+++ b/docs/devices_currentsensor.js.html
@@ -117,13 +117,13 @@ const MaxCurrentRaw = {
diff --git a/docs/devices_device.js.html b/docs/devices_device.js.html
index ec965b7..d88fd86 100644
--- a/docs/devices_device.js.html
+++ b/docs/devices_device.js.html
@@ -224,13 +224,13 @@ exports.Device = Device;
diff --git a/docs/devices_duplotrainbasecolorsensor.js.html b/docs/devices_duplotrainbasecolorsensor.js.html
index 95cfadd..188904a 100644
--- a/docs/devices_duplotrainbasecolorsensor.js.html
+++ b/docs/devices_duplotrainbasecolorsensor.js.html
@@ -139,13 +139,13 @@ exports.ModeMap = {
diff --git a/docs/devices_duplotrainbasemotor.js.html b/docs/devices_duplotrainbasemotor.js.html
index 76c96b0..9563809 100644
--- a/docs/devices_duplotrainbasemotor.js.html
+++ b/docs/devices_duplotrainbasemotor.js.html
@@ -74,13 +74,13 @@ exports.DuploTrainBaseMotor = DuploTrainBaseMotor;
diff --git a/docs/devices_duplotrainbasespeaker.js.html b/docs/devices_duplotrainbasespeaker.js.html
index d5674fc..2857923 100644
--- a/docs/devices_duplotrainbasespeaker.js.html
+++ b/docs/devices_duplotrainbasespeaker.js.html
@@ -102,13 +102,13 @@ var Mode;
diff --git a/docs/devices_duplotrainbasespeedometer.js.html b/docs/devices_duplotrainbasespeedometer.js.html
index 4689009..f825b4f 100644
--- a/docs/devices_duplotrainbasespeedometer.js.html
+++ b/docs/devices_duplotrainbasespeedometer.js.html
@@ -96,13 +96,13 @@ exports.ModeMap = {
diff --git a/docs/devices_hubled.js.html b/docs/devices_hubled.js.html
index 1d282ea..092da2d 100644
--- a/docs/devices_hubled.js.html
+++ b/docs/devices_hubled.js.html
@@ -122,13 +122,13 @@ var Mode;
diff --git a/docs/devices_light.js.html b/docs/devices_light.js.html
index fff5fd6..0ec4802 100644
--- a/docs/devices_light.js.html
+++ b/docs/devices_light.js.html
@@ -108,13 +108,13 @@ exports.Light = Light;
diff --git a/docs/devices_marioaccelerometer.js.html b/docs/devices_marioaccelerometer.js.html
index c41a9c4..49af223 100644
--- a/docs/devices_marioaccelerometer.js.html
+++ b/docs/devices_marioaccelerometer.js.html
@@ -112,13 +112,13 @@ exports.ModeMap = {
diff --git a/docs/devices_mariobarcodesensor.js.html b/docs/devices_mariobarcodesensor.js.html
index 91d4f05..53b8313 100644
--- a/docs/devices_mariobarcodesensor.js.html
+++ b/docs/devices_mariobarcodesensor.js.html
@@ -120,13 +120,13 @@ exports.ModeMap = {
diff --git a/docs/devices_mariopantssensor.js.html b/docs/devices_mariopantssensor.js.html
index f278b97..ac5ac66 100644
--- a/docs/devices_mariopantssensor.js.html
+++ b/docs/devices_mariopantssensor.js.html
@@ -96,13 +96,13 @@ exports.ModeMap = {
diff --git a/docs/devices_mediumlinearmotor.js.html b/docs/devices_mediumlinearmotor.js.html
index 5809e25..f5e6d12 100644
--- a/docs/devices_mediumlinearmotor.js.html
+++ b/docs/devices_mediumlinearmotor.js.html
@@ -74,13 +74,13 @@ exports.MediumLinearMotor = MediumLinearMotor;
diff --git a/docs/devices_motionsensor.js.html b/docs/devices_motionsensor.js.html
index c167769..58bc9cd 100644
--- a/docs/devices_motionsensor.js.html
+++ b/docs/devices_motionsensor.js.html
@@ -100,13 +100,13 @@ exports.ModeMap = {
diff --git a/docs/devices_movehubmediumlinearmotor.js.html b/docs/devices_movehubmediumlinearmotor.js.html
index 3c416c4..1ba63de 100644
--- a/docs/devices_movehubmediumlinearmotor.js.html
+++ b/docs/devices_movehubmediumlinearmotor.js.html
@@ -74,13 +74,13 @@ exports.MoveHubMediumLinearMotor = MoveHubMediumLinearMotor;
diff --git a/docs/devices_movehubtiltsensor.js.html b/docs/devices_movehubtiltsensor.js.html
index 0b0ddb8..21057bf 100644
--- a/docs/devices_movehubtiltsensor.js.html
+++ b/docs/devices_movehubtiltsensor.js.html
@@ -98,13 +98,13 @@ exports.ModeMap = {
diff --git a/docs/devices_piezobuzzer.js.html b/docs/devices_piezobuzzer.js.html
index ffb3bf9..550a6b1 100644
--- a/docs/devices_piezobuzzer.js.html
+++ b/docs/devices_piezobuzzer.js.html
@@ -90,13 +90,13 @@ exports.PiezoBuzzer = PiezoBuzzer;
diff --git a/docs/devices_remotecontrolbutton.js.html b/docs/devices_remotecontrolbutton.js.html
index b8e4eee..4629b71 100644
--- a/docs/devices_remotecontrolbutton.js.html
+++ b/docs/devices_remotecontrolbutton.js.html
@@ -68,7 +68,7 @@ class RemoteControlButton extends device_1.Device {
case Mode.BUTTON_EVENTS:
/**
* Emits when a button on the remote is pressed or released.
- * @event RemoteControlButton#button
+ * @event RemoteControlButton#remoteButton
* @type {object}
* @param {number} event
*/
@@ -102,13 +102,13 @@ exports.ButtonState = {
diff --git a/docs/devices_simplemediumlinearmotor.js.html b/docs/devices_simplemediumlinearmotor.js.html
index 09df9bb..71617bb 100644
--- a/docs/devices_simplemediumlinearmotor.js.html
+++ b/docs/devices_simplemediumlinearmotor.js.html
@@ -74,13 +74,13 @@ exports.SimpleMediumLinearMotor = SimpleMediumLinearMotor;
diff --git a/docs/devices_tachomotor.js.html b/docs/devices_tachomotor.js.html
index b2b6352..a929b4c 100644
--- a/docs/devices_tachomotor.js.html
+++ b/docs/devices_tachomotor.js.html
@@ -229,13 +229,13 @@ exports.ModeMap = {
diff --git a/docs/devices_technic3x3colorlightmatrix.js.html b/docs/devices_technic3x3colorlightmatrix.js.html
index 59d092e..b19d99d 100644
--- a/docs/devices_technic3x3colorlightmatrix.js.html
+++ b/docs/devices_technic3x3colorlightmatrix.js.html
@@ -116,13 +116,13 @@ var Mode;
diff --git a/docs/devices_techniccolorsensor.js.html b/docs/devices_techniccolorsensor.js.html
index 5accf99..45e67ba 100644
--- a/docs/devices_techniccolorsensor.js.html
+++ b/docs/devices_techniccolorsensor.js.html
@@ -134,13 +134,13 @@ exports.ModeMap = {
diff --git a/docs/devices_technicdistancesensor.js.html b/docs/devices_technicdistancesensor.js.html
index 5a6847c..6a03263 100644
--- a/docs/devices_technicdistancesensor.js.html
+++ b/docs/devices_technicdistancesensor.js.html
@@ -120,13 +120,13 @@ exports.ModeMap = {
diff --git a/docs/devices_technicforcesensor.js.html b/docs/devices_technicforcesensor.js.html
index 87078a7..9efb22a 100644
--- a/docs/devices_technicforcesensor.js.html
+++ b/docs/devices_technicforcesensor.js.html
@@ -120,13 +120,13 @@ exports.ModeMap = {
diff --git a/docs/devices_techniclargeangularmotor.js.html b/docs/devices_techniclargeangularmotor.js.html
index 92e8a7b..7268753 100644
--- a/docs/devices_techniclargeangularmotor.js.html
+++ b/docs/devices_techniclargeangularmotor.js.html
@@ -74,13 +74,13 @@ exports.TechnicLargeAngularMotor = TechnicLargeAngularMotor;
diff --git a/docs/devices_techniclargelinearmotor.js.html b/docs/devices_techniclargelinearmotor.js.html
index 2120650..8c0f53b 100644
--- a/docs/devices_techniclargelinearmotor.js.html
+++ b/docs/devices_techniclargelinearmotor.js.html
@@ -74,13 +74,13 @@ exports.TechnicLargeLinearMotor = TechnicLargeLinearMotor;
diff --git a/docs/devices_technicmediumangularmotor.js.html b/docs/devices_technicmediumangularmotor.js.html
index 093d298..611ec72 100644
--- a/docs/devices_technicmediumangularmotor.js.html
+++ b/docs/devices_technicmediumangularmotor.js.html
@@ -74,13 +74,13 @@ exports.TechnicMediumAngularMotor = TechnicMediumAngularMotor;
diff --git a/docs/devices_technicmediumhubaccelerometersensor.js.html b/docs/devices_technicmediumhubaccelerometersensor.js.html
index 7811ce3..7db4d22 100644
--- a/docs/devices_technicmediumhubaccelerometersensor.js.html
+++ b/docs/devices_technicmediumhubaccelerometersensor.js.html
@@ -100,13 +100,13 @@ exports.ModeMap = {
diff --git a/docs/devices_technicmediumhubgyrosensor.js.html b/docs/devices_technicmediumhubgyrosensor.js.html
index 49ebb79..74894b4 100644
--- a/docs/devices_technicmediumhubgyrosensor.js.html
+++ b/docs/devices_technicmediumhubgyrosensor.js.html
@@ -100,13 +100,13 @@ exports.ModeMap = {
diff --git a/docs/devices_technicmediumhubtiltsensor.js.html b/docs/devices_technicmediumhubtiltsensor.js.html
index 97066ef..12bd7a6 100644
--- a/docs/devices_technicmediumhubtiltsensor.js.html
+++ b/docs/devices_technicmediumhubtiltsensor.js.html
@@ -102,7 +102,7 @@ class TechnicMediumHubTiltSensor extends device_1.Device {
* @type {object}
* @param {number} number of impact events.
*/
- this.notify("tiltCount", { count });
+ this.notify("impactCount", { count });
break;
}
}
@@ -168,13 +168,13 @@ exports.ModeMap = {
diff --git a/docs/devices_technicsmallangularmotor.js.html b/docs/devices_technicsmallangularmotor.js.html
index 4c62914..e0b6818 100644
--- a/docs/devices_technicsmallangularmotor.js.html
+++ b/docs/devices_technicsmallangularmotor.js.html
@@ -74,13 +74,13 @@ exports.TechnicSmallAngularMotor = TechnicSmallAngularMotor;
diff --git a/docs/devices_technicxlargelinearmotor.js.html b/docs/devices_technicxlargelinearmotor.js.html
index ddce6e6..a84c9e6 100644
--- a/docs/devices_technicxlargelinearmotor.js.html
+++ b/docs/devices_technicxlargelinearmotor.js.html
@@ -74,13 +74,13 @@ exports.TechnicXLargeLinearMotor = TechnicXLargeLinearMotor;
diff --git a/docs/devices_tiltsensor.js.html b/docs/devices_tiltsensor.js.html
index ae80de7..e63d58c 100644
--- a/docs/devices_tiltsensor.js.html
+++ b/docs/devices_tiltsensor.js.html
@@ -98,13 +98,13 @@ exports.ModeMap = {
diff --git a/docs/devices_trainmotor.js.html b/docs/devices_trainmotor.js.html
index b197292..96a678e 100644
--- a/docs/devices_trainmotor.js.html
+++ b/docs/devices_trainmotor.js.html
@@ -74,13 +74,13 @@ exports.TrainMotor = TrainMotor;
diff --git a/docs/devices_voltagesensor.js.html b/docs/devices_voltagesensor.js.html
index 4fe0010..543bdb5 100644
--- a/docs/devices_voltagesensor.js.html
+++ b/docs/devices_voltagesensor.js.html
@@ -121,13 +121,13 @@ const MaxVoltageRaw = {
diff --git a/docs/global.html b/docs/global.html
index be1157c..8eb70fe 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -3981,13 +3981,13 @@
diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html
index c1a0643..8e89a89 100644
--- a/docs/hubs_basehub.js.html
+++ b/docs/hubs_basehub.js.html
@@ -454,13 +454,13 @@ exports.BaseHub = BaseHub;
diff --git a/docs/hubs_duplotrainbase.js.html b/docs/hubs_duplotrainbase.js.html
index 519c48a..6488be7 100644
--- a/docs/hubs_duplotrainbase.js.html
+++ b/docs/hubs_duplotrainbase.js.html
@@ -97,13 +97,13 @@ exports.PortMap = {
diff --git a/docs/hubs_hub.js.html b/docs/hubs_hub.js.html
index a376cf7..eff8e8e 100644
--- a/docs/hubs_hub.js.html
+++ b/docs/hubs_hub.js.html
@@ -106,13 +106,13 @@ exports.PortMap = {
diff --git a/docs/hubs_lpf2hub.js.html b/docs/hubs_lpf2hub.js.html
index 743c8ac..2bc4a6c 100644
--- a/docs/hubs_lpf2hub.js.html
+++ b/docs/hubs_lpf2hub.js.html
@@ -376,13 +376,13 @@ exports.LPF2Hub = LPF2Hub;
diff --git a/docs/hubs_mario.js.html b/docs/hubs_mario.js.html
index 71bf792..09ed83e 100644
--- a/docs/hubs_mario.js.html
+++ b/docs/hubs_mario.js.html
@@ -93,13 +93,13 @@ exports.PortMap = {};
diff --git a/docs/hubs_movehub.js.html b/docs/hubs_movehub.js.html
index a62b3c7..f15c19c 100644
--- a/docs/hubs_movehub.js.html
+++ b/docs/hubs_movehub.js.html
@@ -108,13 +108,13 @@ exports.PortMap = {
diff --git a/docs/hubs_remotecontrol.js.html b/docs/hubs_remotecontrol.js.html
index 888f2e2..98b4cc6 100644
--- a/docs/hubs_remotecontrol.js.html
+++ b/docs/hubs_remotecontrol.js.html
@@ -99,13 +99,13 @@ exports.PortMap = {
diff --git a/docs/hubs_technicmediumhub.js.html b/docs/hubs_technicmediumhub.js.html
index b33da08..93e85ff 100644
--- a/docs/hubs_technicmediumhub.js.html
+++ b/docs/hubs_technicmediumhub.js.html
@@ -104,13 +104,13 @@ exports.PortMap = {
diff --git a/docs/hubs_technicsmallhub.js.html b/docs/hubs_technicsmallhub.js.html
index 7419184..43fbfab 100644
--- a/docs/hubs_technicsmallhub.js.html
+++ b/docs/hubs_technicsmallhub.js.html
@@ -103,13 +103,13 @@ exports.PortMap = {
diff --git a/docs/hubs_wedo2smarthub.js.html b/docs/hubs_wedo2smarthub.js.html
index db34f83..23bd8aa 100644
--- a/docs/hubs_wedo2smarthub.js.html
+++ b/docs/hubs_wedo2smarthub.js.html
@@ -250,13 +250,13 @@ exports.PortMap = {
diff --git a/docs/index.html b/docs/index.html
index 4277ee2..cdc4702 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -369,13 +369,13 @@ console.log("Scanning for Hubs...");
diff --git a/docs/poweredup-browser.js.html b/docs/poweredup-browser.js.html
index d5b7f55..294a0e5 100644
--- a/docs/poweredup-browser.js.html
+++ b/docs/poweredup-browser.js.html
@@ -154,9 +154,9 @@ class PoweredUP extends events_1.EventEmitter {
return Object.values(this._connectedHubs).filter((hub) => hub.type === hubType);
}
_determineLPF2HubType(device) {
- return new Promise((resolve) => {
+ return new Promise(async (resolve) => {
let buf = Buffer.alloc(0);
- device.subscribeToCharacteristic(Consts.BLECharacteristic.LPF2_ALL, (data) => {
+ await device.subscribeToCharacteristic(Consts.BLECharacteristic.LPF2_ALL, (data) => {
buf = Buffer.concat([buf, data]);
while (buf[0] <= buf.length) {
const len = buf[0];
@@ -182,6 +182,9 @@ class PoweredUP extends events_1.EventEmitter {
case Consts.BLEManufacturerData.TECHNIC_MEDIUM_HUB_ID:
resolve(Consts.HubType.TECHNIC_MEDIUM_HUB);
break;
+ case Consts.BLEManufacturerData.MARIO_ID:
+ resolve(Consts.HubType.MARIO);
+ break;
}
debug("Hub type determined");
}
@@ -274,13 +277,13 @@ exports.PoweredUP = PoweredUP;
diff --git a/docs/poweredup-node.js.html b/docs/poweredup-node.js.html
index 56ca055..317e2a8 100644
--- a/docs/poweredup-node.js.html
+++ b/docs/poweredup-node.js.html
@@ -235,13 +235,13 @@ exports.PoweredUP = PoweredUP;
diff --git a/package.json b/package.json
index 4514ce2..5941b89 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "node-poweredup",
- "version": "8.0.6",
+ "version": "9.0.0",
"description": "A Javascript module to interface with LEGO Powered Up components.",
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
"main": "dist/node/index-node.js",