diff --git a/docs/AbsoluteMotor.html b/docs/AbsoluteMotor.html index e42a241..a97461d 100644 --- a/docs/AbsoluteMotor.html +++ b/docs/AbsoluteMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/BaseHub.html b/docs/BaseHub.html index b863014..a19d017 100644 --- a/docs/BaseHub.html +++ b/docs/BaseHub.html @@ -68,12 +68,12 @@
diff --git a/docs/BasicMotor.html b/docs/BasicMotor.html index a21cfee..49bc090 100644 --- a/docs/BasicMotor.html +++ b/docs/BasicMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/ColorDistanceSensor.html b/docs/ColorDistanceSensor.html index b72a85c..4346972 100644 --- a/docs/ColorDistanceSensor.html +++ b/docs/ColorDistanceSensor.html @@ -68,12 +68,12 @@
@@ -1208,7 +1208,7 @@ - Color + Color @@ -1918,7 +1918,7 @@ - Color + Color @@ -2064,7 +2064,7 @@ - Color + Color diff --git a/docs/CurrentSensor.html b/docs/CurrentSensor.html index 2eb9ecf..8aec784 100644 --- a/docs/CurrentSensor.html +++ b/docs/CurrentSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/Device.html b/docs/Device.html index b884bbb..c5e0bb3 100644 --- a/docs/Device.html +++ b/docs/Device.html @@ -68,12 +68,12 @@
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index 4b53d0f..d44dff3 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -68,12 +68,12 @@
@@ -1935,7 +1935,7 @@ - ButtonState + ButtonState diff --git a/docs/DuploTrainBaseColorSensor.html b/docs/DuploTrainBaseColorSensor.html index bd1eaf7..c58f3a7 100644 --- a/docs/DuploTrainBaseColorSensor.html +++ b/docs/DuploTrainBaseColorSensor.html @@ -68,12 +68,12 @@
@@ -1066,7 +1066,7 @@ - Color + Color diff --git a/docs/DuploTrainBaseMotor.html b/docs/DuploTrainBaseMotor.html index a519bb1..43a4d39 100644 --- a/docs/DuploTrainBaseMotor.html +++ b/docs/DuploTrainBaseMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/DuploTrainBaseSpeaker.html b/docs/DuploTrainBaseSpeaker.html index 6204437..4c5009f 100644 --- a/docs/DuploTrainBaseSpeaker.html +++ b/docs/DuploTrainBaseSpeaker.html @@ -68,12 +68,12 @@
@@ -1062,7 +1062,7 @@ - DuploTrainBaseSound + DuploTrainBaseSound diff --git a/docs/DuploTraniBaseSpeedometer.html b/docs/DuploTraniBaseSpeedometer.html index c0652f1..85393e1 100644 --- a/docs/DuploTraniBaseSpeedometer.html +++ b/docs/DuploTraniBaseSpeedometer.html @@ -68,12 +68,12 @@
diff --git a/docs/Hub.html b/docs/Hub.html index 051afa4..26c1eca 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -68,12 +68,12 @@
@@ -3234,7 +3234,7 @@ - ButtonState + ButtonState diff --git a/docs/HubLED.html b/docs/HubLED.html index 4719d6d..2ea7935 100644 --- a/docs/HubLED.html +++ b/docs/HubLED.html @@ -68,12 +68,12 @@
@@ -1062,7 +1062,7 @@ - Color + Color diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index 3cf0d98..f4e78cc 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -68,12 +68,12 @@
@@ -1902,7 +1902,7 @@ - ButtonState + ButtonState diff --git a/docs/Light.html b/docs/Light.html index e22424d..19c5cbf 100644 --- a/docs/Light.html +++ b/docs/Light.html @@ -68,12 +68,12 @@
diff --git a/docs/Mario.html b/docs/Mario.html index 60b7e8f..af5aa01 100644 --- a/docs/Mario.html +++ b/docs/Mario.html @@ -68,12 +68,12 @@
@@ -1935,7 +1935,7 @@ - ButtonState + ButtonState diff --git a/docs/MarioAccelerometer.html b/docs/MarioAccelerometer.html index f0a0fbb..870a3db 100644 --- a/docs/MarioAccelerometer.html +++ b/docs/MarioAccelerometer.html @@ -68,12 +68,12 @@
diff --git a/docs/MarioBarcodeSensor.html b/docs/MarioBarcodeSensor.html index 756799d..8592abc 100644 --- a/docs/MarioBarcodeSensor.html +++ b/docs/MarioBarcodeSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/MarioPantsSensor.html b/docs/MarioPantsSensor.html index b7c3fc5..5f922f4 100644 --- a/docs/MarioPantsSensor.html +++ b/docs/MarioPantsSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/MediumLinearMotor.html b/docs/MediumLinearMotor.html index bb35f0e..c6d3708 100644 --- a/docs/MediumLinearMotor.html +++ b/docs/MediumLinearMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/MotionSensor.html b/docs/MotionSensor.html index e6291d7..934ea39 100644 --- a/docs/MotionSensor.html +++ b/docs/MotionSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/MoveHub.html b/docs/MoveHub.html index b0de5a7..adcbb99 100644 --- a/docs/MoveHub.html +++ b/docs/MoveHub.html @@ -68,12 +68,12 @@
@@ -1935,7 +1935,7 @@ - ButtonState + ButtonState diff --git a/docs/MoveHubMediumLinearMotor.html b/docs/MoveHubMediumLinearMotor.html index 33f2965..a7da732 100644 --- a/docs/MoveHubMediumLinearMotor.html +++ b/docs/MoveHubMediumLinearMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/MoveHubTiltSensor.html b/docs/MoveHubTiltSensor.html index 9344339..af21d21 100644 --- a/docs/MoveHubTiltSensor.html +++ b/docs/MoveHubTiltSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html index 96cf65a..1e2b6b6 100644 --- a/docs/PiezoBuzzer.html +++ b/docs/PiezoBuzzer.html @@ -68,12 +68,12 @@
diff --git a/docs/PoweredUP.html b/docs/PoweredUP.html new file mode 100644 index 0000000..9500450 --- /dev/null +++ b/docs/PoweredUP.html @@ -0,0 +1,4322 @@ + + + + + + + + + PoweredUP - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ PoweredUP +

+ + + + +
+
+ +

+ + PoweredUP + +

+ + + +
+ +
+
+ + + + + + + + + + + + +

+ new PoweredUP() +

+
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + +

Extends

+ + + + +
    +
  • EventEmitter
  • +
+ + + + + + + + + + + + + + + +

Methods

+ + + + + + + + + + + + + +

+ getHubByPrimaryMACAddress(address) → {BaseHub} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by primary MAC address.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
address + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubByPrimaryMACAddress(address) → {BaseHub} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by primary MAC address.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
address + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubByUUID(uuid) → {BaseHub|null} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by UUID.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubByUUID(uuid) → {BaseHub|null} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by UUID.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubs() → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hubs.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubs() → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hubs.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByName(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by name.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByName(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by name.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByType(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by type.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByType(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by type.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ scan() +

+
+ + + + + +
+

Begin scanning for Powered UP Hub devices.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ scan() +

+
+ + + + + +
+

Begin scanning for Powered UP Hub devices.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ stop() +

+
+ + + + + +
+

Stop scanning for Powered UP Hub devices.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +

Events

+ + + + + + + + + + + + + +

+ discover +

+
+ + + + + +
+

Emits when a Powered UP Hub device is found.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hub + + + + WeDo2SmartHub + + + | + + + MoveHub + + + | + + + TechnicMediumHub + + + | + + + RemoteControl + + + | + + + DuploTrainBase + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ discover +

+
+ + + + + +
+

Emits when a Powered UP Hub device is found.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hub + + + + WeDo2SmartHub + + + | + + + MoveHub + + + | + + + TechnicMediumHub + + + | + + + RemoteControl + + + | + + + DuploTrainBase + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
+
+ + + + +
+
+ +

+ + PoweredUP + +

+ + + +
+ +
+
+ + + + + + + + + + + + +

+ new PoweredUP() +

+
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + +

Extends

+ + + + +
    +
  • EventEmitter
  • +
+ + + + + + + + + + + + + + + +

Methods

+ + + + + + + + + + + + + +

+ getHubByPrimaryMACAddress(address) → {BaseHub} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by primary MAC address.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
address + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubByPrimaryMACAddress(address) → {BaseHub} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by primary MAC address.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
address + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubByUUID(uuid) → {BaseHub|null} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by UUID.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubByUUID(uuid) → {BaseHub|null} +

+
+ + + + + +
+

Retrieve a Powered UP Hub by UUID.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubs() → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hubs.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubs() → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hubs.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByName(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by name.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByName(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by name.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByType(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by type.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ getHubsByType(name) → {Array.<BaseHub>} +

+
+ + + + + +
+

Retrieve a list of Powered UP Hub by type.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ scan() +

+
+ + + + + +
+

Begin scanning for Powered UP Hub devices.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ scan() +

+
+ + + + + +
+

Begin scanning for Powered UP Hub devices.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ stop() +

+
+ + + + + +
+

Stop scanning for Powered UP Hub devices.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +

Events

+ + + + + + + + + + + + + +

+ discover +

+
+ + + + + +
+

Emits when a Powered UP Hub device is found.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hub + + + + WeDo2SmartHub + + + | + + + MoveHub + + + | + + + TechnicMediumHub + + + | + + + RemoteControl + + + | + + + DuploTrainBase + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ discover +

+
+ + + + + +
+

Emits when a Powered UP Hub device is found.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hub + + + + WeDo2SmartHub + + + | + + + MoveHub + + + | + + + TechnicMediumHub + + + | + + + RemoteControl + + + | + + + DuploTrainBase + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html index 713b93a..177577f 100644 --- a/docs/RemoteControl.html +++ b/docs/RemoteControl.html @@ -68,12 +68,12 @@
@@ -1935,7 +1935,7 @@ - ButtonState + ButtonState diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html index 284e845..188c218 100644 --- a/docs/RemoteControlButton.html +++ b/docs/RemoteControlButton.html @@ -68,12 +68,12 @@
diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html index fb37b36..e0f02b5 100644 --- a/docs/SimpleMediumLinearMotor.html +++ b/docs/SimpleMediumLinearMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html index ead077f..9c8e315 100644 --- a/docs/TachoMotor.html +++ b/docs/TachoMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html index 6bbaef6..2b244f7 100644 --- a/docs/TechnicColorSensor.html +++ b/docs/TechnicColorSensor.html @@ -68,12 +68,12 @@
@@ -1420,7 +1420,7 @@ - Color + Color diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html index 5d45886..01158cf 100644 --- a/docs/TechnicDistanceSensor.html +++ b/docs/TechnicDistanceSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html index 51c8222..d93a3c7 100644 --- a/docs/TechnicForceSensor.html +++ b/docs/TechnicForceSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html index 38f1d3a..fe89b65 100644 --- a/docs/TechnicLargeAngularMotor.html +++ b/docs/TechnicLargeAngularMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html index 7a421ea..6afe6db 100644 --- a/docs/TechnicLargeLinearMotor.html +++ b/docs/TechnicLargeLinearMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html index c8d1c8f..f841568 100644 --- a/docs/TechnicMediumAngularMotor.html +++ b/docs/TechnicMediumAngularMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html index cfb6484..c3b7aaa 100644 --- a/docs/TechnicMediumHub.html +++ b/docs/TechnicMediumHub.html @@ -68,12 +68,12 @@
@@ -1935,7 +1935,7 @@ - ButtonState + ButtonState diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html index 410aaa6..8d3297a 100644 --- a/docs/TechnicMediumHubAccelerometerSensor.html +++ b/docs/TechnicMediumHubAccelerometerSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html index dc2822d..02dd4eb 100644 --- a/docs/TechnicMediumHubGyroSensor.html +++ b/docs/TechnicMediumHubGyroSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html index 4c92008..e26d385 100644 --- a/docs/TechnicMediumHubTiltSensor.html +++ b/docs/TechnicMediumHubTiltSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html index 785b31b..c4ac59d 100644 --- a/docs/TechnicXLargeLinearMotor.html +++ b/docs/TechnicXLargeLinearMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html index c7d479b..9f7b63e 100644 --- a/docs/TiltSensor.html +++ b/docs/TiltSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html index b53e8ca..9cbe5e8 100644 --- a/docs/TrainMotor.html +++ b/docs/TrainMotor.html @@ -68,12 +68,12 @@
diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html index bc767f9..c02a0cd 100644 --- a/docs/VoltageSensor.html +++ b/docs/VoltageSensor.html @@ -68,12 +68,12 @@
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index 5ce9d6c..354398a 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -68,12 +68,12 @@
@@ -1730,7 +1730,7 @@ - ButtonState + ButtonState diff --git a/docs/consts.js.html b/docs/consts.js.html new file mode 100644 index 0000000..41f8742 --- /dev/null +++ b/docs/consts.js.html @@ -0,0 +1,770 @@ + + + + + + + + + + + consts.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ consts.js +

+ + + + + +
+
+
"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.MarioColor = exports.MarioPantsType = exports.PortInputFormatSetupSubCommand = exports.ModeInformationType = exports.HWNetworkSubFamily = exports.HWNetworkFamily = exports.HWNetWorkCommandType = exports.ErrorCode = exports.IOTypeID = exports.Event = exports.AlertPayload = exports.AlertOperation = exports.AlertType = exports.ActionType = exports.HubPropertyPayload = exports.HubPropertyOperation = exports.HubPropertyReference = exports.MessageType = exports.BLECharacteristic = exports.BLEService = exports.BLEManufacturerData = exports.DuploTrainBaseSound = exports.BrakingStyle = exports.ButtonState = exports.ColorNames = exports.Color = exports.DeviceTypeNames = exports.DeviceType = exports.HubTypeNames = exports.HubType = void 0;
+/**
+ * @typedef HubType
+ * @property {number} UNKNOWN 0
+ * @property {number} WEDO2_SMART_HUB 1
+ * @property {number} MOVE_HUB 2
+ * @property {number} POWERED_UP_HUB 3
+ * @property {number} POWERED_UP_REMOTE 4
+ * @property {number} DUPLO_TRAIN_HUB 5
+ * @property {number} CONTROL_PLUS_HUB 6
+ * @property {number} MARIO 7
+ */
+var HubType;
+(function (HubType) {
+    HubType[HubType["UNKNOWN"] = 0] = "UNKNOWN";
+    HubType[HubType["WEDO2_SMART_HUB"] = 1] = "WEDO2_SMART_HUB";
+    HubType[HubType["MOVE_HUB"] = 2] = "MOVE_HUB";
+    HubType[HubType["HUB"] = 3] = "HUB";
+    HubType[HubType["REMOTE_CONTROL"] = 4] = "REMOTE_CONTROL";
+    HubType[HubType["DUPLO_TRAIN_BASE"] = 5] = "DUPLO_TRAIN_BASE";
+    HubType[HubType["TECHNIC_MEDIUM_HUB"] = 6] = "TECHNIC_MEDIUM_HUB";
+    HubType[HubType["MARIO"] = 7] = "MARIO";
+})(HubType = exports.HubType || (exports.HubType = {}));
+// tslint:disable-next-line
+exports.HubTypeNames = HubType;
+/**
+ * @typedef DeviceType
+ * @property {number} UNKNOWN 0
+ * @property {number} SIMPLE_MEDIUM_LINEAR_MOTOR 1
+ * @property {number} TRAIN_MOTOR 2
+ * @property {number} LED_LIGHTS 8
+ * @property {number} VOLTAGE 20
+ * @property {number} CURRENT 21
+ * @property {number} PIEZO_TONE 22
+ * @property {number} RGB_LIGHT 23
+ * @property {number} WEDO2_TILT 34
+ * @property {number} WEDO2_DISTANCE 35
+ * @property {number} COLOR_DISTANCE_SENSOR 37
+ * @property {number} MEDIUM_LINEAR_MOTOR 38
+ * @property {number} MOVE_HUB_MEDIUM_LINEAR_MOTOR 39
+ * @property {number} BOOST_TILT 40
+ * @property {number} DUPLO_TRAIN_BASE_MOTOR 41
+ * @property {number} DUPLO_TRAIN_BASE_SPEAKER 42
+ * @property {number} DUPLO_TRAIN_BASE_COLOR 43
+ * @property {number} DUPLO_TRAIN_BASE_SPEEDOMETER 44
+ * @property {number} CONTROL_PLUS_LARGE_MOTOR 46
+ * @property {number} CONTROL_PLUS_XLARGE_MOTOR 47
+ * @property {number} POWERED_UP_REMOTE_BUTTON 55
+ * @property {number} RSSI 56
+ * @property {number} CONTROL_PLUS_ACCELEROMETER 58
+ * @property {number} CONTROL_PLUS_TILT 59
+ */
+var DeviceType;
+(function (DeviceType) {
+    DeviceType[DeviceType["UNKNOWN"] = 0] = "UNKNOWN";
+    DeviceType[DeviceType["SIMPLE_MEDIUM_LINEAR_MOTOR"] = 1] = "SIMPLE_MEDIUM_LINEAR_MOTOR";
+    DeviceType[DeviceType["TRAIN_MOTOR"] = 2] = "TRAIN_MOTOR";
+    DeviceType[DeviceType["LIGHT"] = 8] = "LIGHT";
+    DeviceType[DeviceType["VOLTAGE_SENSOR"] = 20] = "VOLTAGE_SENSOR";
+    DeviceType[DeviceType["CURRENT_SENSOR"] = 21] = "CURRENT_SENSOR";
+    DeviceType[DeviceType["PIEZO_BUZZER"] = 22] = "PIEZO_BUZZER";
+    DeviceType[DeviceType["HUB_LED"] = 23] = "HUB_LED";
+    DeviceType[DeviceType["TILT_SENSOR"] = 34] = "TILT_SENSOR";
+    DeviceType[DeviceType["MOTION_SENSOR"] = 35] = "MOTION_SENSOR";
+    DeviceType[DeviceType["COLOR_DISTANCE_SENSOR"] = 37] = "COLOR_DISTANCE_SENSOR";
+    DeviceType[DeviceType["MEDIUM_LINEAR_MOTOR"] = 38] = "MEDIUM_LINEAR_MOTOR";
+    DeviceType[DeviceType["MOVE_HUB_MEDIUM_LINEAR_MOTOR"] = 39] = "MOVE_HUB_MEDIUM_LINEAR_MOTOR";
+    DeviceType[DeviceType["MOVE_HUB_TILT_SENSOR"] = 40] = "MOVE_HUB_TILT_SENSOR";
+    DeviceType[DeviceType["DUPLO_TRAIN_BASE_MOTOR"] = 41] = "DUPLO_TRAIN_BASE_MOTOR";
+    DeviceType[DeviceType["DUPLO_TRAIN_BASE_SPEAKER"] = 42] = "DUPLO_TRAIN_BASE_SPEAKER";
+    DeviceType[DeviceType["DUPLO_TRAIN_BASE_COLOR_SENSOR"] = 43] = "DUPLO_TRAIN_BASE_COLOR_SENSOR";
+    DeviceType[DeviceType["DUPLO_TRAIN_BASE_SPEEDOMETER"] = 44] = "DUPLO_TRAIN_BASE_SPEEDOMETER";
+    DeviceType[DeviceType["TECHNIC_LARGE_LINEAR_MOTOR"] = 46] = "TECHNIC_LARGE_LINEAR_MOTOR";
+    DeviceType[DeviceType["TECHNIC_XLARGE_LINEAR_MOTOR"] = 47] = "TECHNIC_XLARGE_LINEAR_MOTOR";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_ANGULAR_MOTOR"] = 48] = "TECHNIC_MEDIUM_ANGULAR_MOTOR";
+    DeviceType[DeviceType["TECHNIC_LARGE_ANGULAR_MOTOR"] = 49] = "TECHNIC_LARGE_ANGULAR_MOTOR";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_HUB_GEST_SENSOR"] = 54] = "TECHNIC_MEDIUM_HUB_GEST_SENSOR";
+    DeviceType[DeviceType["REMOTE_CONTROL_BUTTON"] = 55] = "REMOTE_CONTROL_BUTTON";
+    DeviceType[DeviceType["REMOTE_CONTROL_RSSI"] = 56] = "REMOTE_CONTROL_RSSI";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_HUB_ACCELEROMETER"] = 57] = "TECHNIC_MEDIUM_HUB_ACCELEROMETER";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_HUB_GYRO_SENSOR"] = 58] = "TECHNIC_MEDIUM_HUB_GYRO_SENSOR";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_HUB_TILT_SENSOR"] = 59] = "TECHNIC_MEDIUM_HUB_TILT_SENSOR";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_HUB_TEMPERATURE_SENSOR"] = 60] = "TECHNIC_MEDIUM_HUB_TEMPERATURE_SENSOR";
+    DeviceType[DeviceType["TECHNIC_COLOR_SENSOR"] = 61] = "TECHNIC_COLOR_SENSOR";
+    DeviceType[DeviceType["TECHNIC_DISTANCE_SENSOR"] = 62] = "TECHNIC_DISTANCE_SENSOR";
+    DeviceType[DeviceType["TECHNIC_FORCE_SENSOR"] = 63] = "TECHNIC_FORCE_SENSOR";
+    DeviceType[DeviceType["MARIO_ACCELEROMETER"] = 71] = "MARIO_ACCELEROMETER";
+    DeviceType[DeviceType["MARIO_BARCODE_SENSOR"] = 73] = "MARIO_BARCODE_SENSOR";
+    DeviceType[DeviceType["MARIO_PANTS_SENSOR"] = 74] = "MARIO_PANTS_SENSOR";
+    DeviceType[DeviceType["TECHNIC_MEDIUM_ANGULAR_MOTOR_GREY"] = 75] = "TECHNIC_MEDIUM_ANGULAR_MOTOR_GREY";
+    DeviceType[DeviceType["TECHNIC_LARGE_ANGULAR_MOTOR_GREY"] = 76] = "TECHNIC_LARGE_ANGULAR_MOTOR_GREY";
+})(DeviceType = exports.DeviceType || (exports.DeviceType = {}));
+// tslint:disable-next-line
+exports.DeviceTypeNames = DeviceType;
+/**
+ * @typedef Color
+ * @property {number} BLACK 0
+ * @property {number} PINK 1
+ * @property {number} PURPLE 2
+ * @property {number} BLUE 3
+ * @property {number} LIGHT_BLUE 4
+ * @property {number} CYAN 5
+ * @property {number} GREEN 6
+ * @property {number} YELLOW 7
+ * @property {number} ORANGE 8
+ * @property {number} RED 9
+ * @property {number} WHITE 10
+ * @property {number} NONE 255
+ */
+var Color;
+(function (Color) {
+    Color[Color["BLACK"] = 0] = "BLACK";
+    Color[Color["PINK"] = 1] = "PINK";
+    Color[Color["PURPLE"] = 2] = "PURPLE";
+    Color[Color["BLUE"] = 3] = "BLUE";
+    Color[Color["LIGHT_BLUE"] = 4] = "LIGHT_BLUE";
+    Color[Color["CYAN"] = 5] = "CYAN";
+    Color[Color["GREEN"] = 6] = "GREEN";
+    Color[Color["YELLOW"] = 7] = "YELLOW";
+    Color[Color["ORANGE"] = 8] = "ORANGE";
+    Color[Color["RED"] = 9] = "RED";
+    Color[Color["WHITE"] = 10] = "WHITE";
+    Color[Color["NONE"] = 255] = "NONE";
+})(Color = exports.Color || (exports.Color = {}));
+// tslint:disable-next-line
+exports.ColorNames = Color;
+/**
+ * @typedef ButtonState
+ * @property {number} PRESSED 0
+ * @property {number} RELEASED 1
+ * @property {number} UP 2
+ * @property {number} DOWN 3
+ * @property {number} STOP 4
+ */
+var ButtonState;
+(function (ButtonState) {
+    ButtonState[ButtonState["PRESSED"] = 2] = "PRESSED";
+    ButtonState[ButtonState["RELEASED"] = 0] = "RELEASED";
+    ButtonState[ButtonState["UP"] = 1] = "UP";
+    ButtonState[ButtonState["DOWN"] = 255] = "DOWN";
+    ButtonState[ButtonState["STOP"] = 127] = "STOP";
+})(ButtonState = exports.ButtonState || (exports.ButtonState = {}));
+/**
+ * @typedef BrakingStyle
+ * @property {number} HOLD 127
+ * @property {number} BRAKE 128
+ */
+var BrakingStyle;
+(function (BrakingStyle) {
+    BrakingStyle[BrakingStyle["FLOAT"] = 0] = "FLOAT";
+    BrakingStyle[BrakingStyle["HOLD"] = 126] = "HOLD";
+    BrakingStyle[BrakingStyle["BRAKE"] = 127] = "BRAKE";
+})(BrakingStyle = exports.BrakingStyle || (exports.BrakingStyle = {}));
+/**
+ * @typedef DuploTrainBaseSound
+ * @property {number} BRAKE 3
+ * @property {number} STATION_DEPARTURE 5
+ * @property {number} WATER_REFILL 7
+ * @property {number} HORN 9
+ * @property {number} STEAM 10
+ */
+var DuploTrainBaseSound;
+(function (DuploTrainBaseSound) {
+    DuploTrainBaseSound[DuploTrainBaseSound["BRAKE"] = 3] = "BRAKE";
+    DuploTrainBaseSound[DuploTrainBaseSound["STATION_DEPARTURE"] = 5] = "STATION_DEPARTURE";
+    DuploTrainBaseSound[DuploTrainBaseSound["WATER_REFILL"] = 7] = "WATER_REFILL";
+    DuploTrainBaseSound[DuploTrainBaseSound["HORN"] = 9] = "HORN";
+    DuploTrainBaseSound[DuploTrainBaseSound["STEAM"] = 10] = "STEAM";
+})(DuploTrainBaseSound = exports.DuploTrainBaseSound || (exports.DuploTrainBaseSound = {}));
+var BLEManufacturerData;
+(function (BLEManufacturerData) {
+    BLEManufacturerData[BLEManufacturerData["DUPLO_TRAIN_BASE_ID"] = 32] = "DUPLO_TRAIN_BASE_ID";
+    BLEManufacturerData[BLEManufacturerData["MOVE_HUB_ID"] = 64] = "MOVE_HUB_ID";
+    BLEManufacturerData[BLEManufacturerData["HUB_ID"] = 65] = "HUB_ID";
+    BLEManufacturerData[BLEManufacturerData["REMOTE_CONTROL_ID"] = 66] = "REMOTE_CONTROL_ID";
+    BLEManufacturerData[BLEManufacturerData["MARIO_ID"] = 67] = "MARIO_ID";
+    BLEManufacturerData[BLEManufacturerData["TECHNIC_MEDIUM_HUB"] = 128] = "TECHNIC_MEDIUM_HUB";
+})(BLEManufacturerData = exports.BLEManufacturerData || (exports.BLEManufacturerData = {}));
+var BLEService;
+(function (BLEService) {
+    BLEService["WEDO2_SMART_HUB"] = "00001523-1212-efde-1523-785feabcd123";
+    BLEService["WEDO2_SMART_HUB_2"] = "00004f0e-1212-efde-1523-785feabcd123";
+    BLEService["WEDO2_SMART_HUB_3"] = "2a19";
+    BLEService["WEDO2_SMART_HUB_4"] = "180f";
+    BLEService["WEDO2_SMART_HUB_5"] = "180a";
+    BLEService["LPF2_HUB"] = "00001623-1212-efde-1623-785feabcd123";
+})(BLEService = exports.BLEService || (exports.BLEService = {}));
+var BLECharacteristic;
+(function (BLECharacteristic) {
+    BLECharacteristic["WEDO2_BATTERY"] = "2a19";
+    BLECharacteristic["WEDO2_FIRMWARE_REVISION"] = "2a26";
+    BLECharacteristic["WEDO2_BUTTON"] = "00001526-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_PORT_TYPE"] = "00001527-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_LOW_VOLTAGE_ALERT"] = "00001528-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_HIGH_CURRENT_ALERT"] = "00001529-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_LOW_SIGNAL_ALERT"] = "0000152a-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_DISCONNECT"] = "0000152b-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_SENSOR_VALUE"] = "00001560-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_VALUE_FORMAT"] = "00001561-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_PORT_TYPE_WRITE"] = "00001563-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_MOTOR_VALUE_WRITE"] = "00001565-1212-efde-1523-785feabcd123";
+    BLECharacteristic["WEDO2_NAME_ID"] = "00001524-1212-efde-1523-785feabcd123";
+    BLECharacteristic["LPF2_ALL"] = "00001624-1212-efde-1623-785feabcd123";
+})(BLECharacteristic = exports.BLECharacteristic || (exports.BLECharacteristic = {}));
+/**
+ * @typedef MessageType
+ * @property {number} HUB_PROPERTIES 0x01
+ * @property {number} HUB_ACTIONS 0x02
+ * @property {number} HUB_ALERTS 0x03
+ * @property {number} HUB_ATTACHED_IO 0x04
+ * @property {number} GENERIC_ERROR_MESSAGES 0x05
+ * @property {number} HW_NETWORK_COMMANDS 0x08
+ * @property {number} FW_UPDATE_GO_INTO_BOOT_MODE 0x10
+ * @property {number} FW_UPDATE_LOCK_MEMORY 0x11
+ * @property {number} FW_UPDATE_LOCK_STATUS_REQUEST 0x12
+ * @property {number} FW_LOCK_STATUS 0x13
+ * @property {number} PORT_INFORMATION_REQUEST 0x21
+ * @property {number} PORT_MODE_INFORMATION_REQUEST 0x22
+ * @property {number} PORT_INPUT_FORMAT_SETUP_SINGLE 0x41
+ * @property {number} PORT_INPUT_FORMAT_SETUP_COMBINEDMODE 0x42
+ * @property {number} PORT_INFORMATION 0x43
+ * @property {number} PORT_MODE_INFORMATION 0x44
+ * @property {number} PORT_VALUE_SINGLE 0x45
+ * @property {number} PORT_VALUE_COMBINEDMODE 0x46
+ * @property {number} PORT_INPUT_FORMAT_SINGLE 0x47
+ * @property {number} PORT_INPUT_FORMAT_COMBINEDMODE 0x48
+ * @property {number} VIRTUAL_PORT_SETUP 0x61
+ * @property {number} PORT_OUTPUT_COMMAND 0x81
+ * @property {number} PORT_OUTPUT_COMMAND_FEEDBACK 0x82
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#message-types
+ */
+var MessageType;
+(function (MessageType) {
+    MessageType[MessageType["HUB_PROPERTIES"] = 1] = "HUB_PROPERTIES";
+    MessageType[MessageType["HUB_ACTIONS"] = 2] = "HUB_ACTIONS";
+    MessageType[MessageType["HUB_ALERTS"] = 3] = "HUB_ALERTS";
+    MessageType[MessageType["HUB_ATTACHED_IO"] = 4] = "HUB_ATTACHED_IO";
+    MessageType[MessageType["GENERIC_ERROR_MESSAGES"] = 5] = "GENERIC_ERROR_MESSAGES";
+    MessageType[MessageType["HW_NETWORK_COMMANDS"] = 8] = "HW_NETWORK_COMMANDS";
+    MessageType[MessageType["FW_UPDATE_GO_INTO_BOOT_MODE"] = 16] = "FW_UPDATE_GO_INTO_BOOT_MODE";
+    MessageType[MessageType["FW_UPDATE_LOCK_MEMORY"] = 17] = "FW_UPDATE_LOCK_MEMORY";
+    MessageType[MessageType["FW_UPDATE_LOCK_STATUS_REQUEST"] = 18] = "FW_UPDATE_LOCK_STATUS_REQUEST";
+    MessageType[MessageType["FW_LOCK_STATUS"] = 19] = "FW_LOCK_STATUS";
+    MessageType[MessageType["PORT_INFORMATION_REQUEST"] = 33] = "PORT_INFORMATION_REQUEST";
+    MessageType[MessageType["PORT_MODE_INFORMATION_REQUEST"] = 34] = "PORT_MODE_INFORMATION_REQUEST";
+    MessageType[MessageType["PORT_INPUT_FORMAT_SETUP_SINGLE"] = 65] = "PORT_INPUT_FORMAT_SETUP_SINGLE";
+    MessageType[MessageType["PORT_INPUT_FORMAT_SETUP_COMBINEDMODE"] = 66] = "PORT_INPUT_FORMAT_SETUP_COMBINEDMODE";
+    MessageType[MessageType["PORT_INFORMATION"] = 67] = "PORT_INFORMATION";
+    MessageType[MessageType["PORT_MODE_INFORMATION"] = 68] = "PORT_MODE_INFORMATION";
+    MessageType[MessageType["PORT_VALUE_SINGLE"] = 69] = "PORT_VALUE_SINGLE";
+    MessageType[MessageType["PORT_VALUE_COMBINEDMODE"] = 70] = "PORT_VALUE_COMBINEDMODE";
+    MessageType[MessageType["PORT_INPUT_FORMAT_SINGLE"] = 71] = "PORT_INPUT_FORMAT_SINGLE";
+    MessageType[MessageType["PORT_INPUT_FORMAT_COMBINEDMODE"] = 72] = "PORT_INPUT_FORMAT_COMBINEDMODE";
+    MessageType[MessageType["VIRTUAL_PORT_SETUP"] = 97] = "VIRTUAL_PORT_SETUP";
+    MessageType[MessageType["PORT_OUTPUT_COMMAND"] = 129] = "PORT_OUTPUT_COMMAND";
+    MessageType[MessageType["PORT_OUTPUT_COMMAND_FEEDBACK"] = 130] = "PORT_OUTPUT_COMMAND_FEEDBACK";
+})(MessageType = exports.MessageType || (exports.MessageType = {}));
+/**
+ * @typedef HubPropertyReference
+ * @param {number} ADVERTISING_NAME 0x01
+ * @param {number} BUTTON 0x02
+ * @param {number} FW_VERSION 0x03
+ * @param {number} HW_VERSION 0x04
+ * @param {number} RSSI 0x05
+ * @param {number} BATTERY_VOLTAGE 0x06
+ * @param {number} BATTERY_TYPE 0x07
+ * @param {number} MANUFACTURER_NAME 0x08
+ * @param {number} RADIO_FIRMWARE_VERSION 0x09
+ * @param {number} LEGO_WIRELESS_PROTOCOL_VERSION 0x0A
+ * @param {number} SYSTEM_TYPE_ID 0x0B
+ * @param {number} HW_NETWORK_ID 0x0C
+ * @param {number} PRIMARY_MAC_ADDRESS 0x0D
+ * @param {number} SECONDARY_MAC_ADDRESS 0x0E
+ * @param {number} HARDWARE_NETWORK_FAMILY 0x0F
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-property-reference
+ */
+var HubPropertyReference;
+(function (HubPropertyReference) {
+    HubPropertyReference[HubPropertyReference["ADVERTISING_NAME"] = 1] = "ADVERTISING_NAME";
+    HubPropertyReference[HubPropertyReference["BUTTON"] = 2] = "BUTTON";
+    HubPropertyReference[HubPropertyReference["FW_VERSION"] = 3] = "FW_VERSION";
+    HubPropertyReference[HubPropertyReference["HW_VERSION"] = 4] = "HW_VERSION";
+    HubPropertyReference[HubPropertyReference["RSSI"] = 5] = "RSSI";
+    HubPropertyReference[HubPropertyReference["BATTERY_VOLTAGE"] = 6] = "BATTERY_VOLTAGE";
+    HubPropertyReference[HubPropertyReference["BATTERY_TYPE"] = 7] = "BATTERY_TYPE";
+    HubPropertyReference[HubPropertyReference["MANUFACTURER_NAME"] = 8] = "MANUFACTURER_NAME";
+    HubPropertyReference[HubPropertyReference["RADIO_FIRMWARE_VERSION"] = 9] = "RADIO_FIRMWARE_VERSION";
+    HubPropertyReference[HubPropertyReference["LEGO_WIRELESS_PROTOCOL_VERSION"] = 10] = "LEGO_WIRELESS_PROTOCOL_VERSION";
+    HubPropertyReference[HubPropertyReference["SYSTEM_TYPE_ID"] = 11] = "SYSTEM_TYPE_ID";
+    HubPropertyReference[HubPropertyReference["HW_NETWORK_ID"] = 12] = "HW_NETWORK_ID";
+    HubPropertyReference[HubPropertyReference["PRIMARY_MAC_ADDRESS"] = 13] = "PRIMARY_MAC_ADDRESS";
+    HubPropertyReference[HubPropertyReference["SECONDARY_MAC_ADDRESS"] = 14] = "SECONDARY_MAC_ADDRESS";
+    HubPropertyReference[HubPropertyReference["HARDWARE_NETWORK_FAMILY"] = 15] = "HARDWARE_NETWORK_FAMILY";
+})(HubPropertyReference = exports.HubPropertyReference || (exports.HubPropertyReference = {}));
+/**
+ * @typedef HubPropertyOperation
+ * @param {number} SET_DOWNSTREAM 0x01
+ * @param {number} ENABLE_UPDATES_DOWNSTREAM 0x02
+ * @param {number} DISABLE_UPDATES_DOWNSTREAM 0x03
+ * @param {number} RESET_DOWNSTREAM 0x04
+ * @param {number} REQUEST_UPDATE_DOWNSTREAM 0x05
+ * @param {number} UPDATE_UPSTREAM 0x06
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-property-reference
+ */
+var HubPropertyOperation;
+(function (HubPropertyOperation) {
+    HubPropertyOperation[HubPropertyOperation["SET_DOWNSTREAM"] = 1] = "SET_DOWNSTREAM";
+    HubPropertyOperation[HubPropertyOperation["ENABLE_UPDATES_DOWNSTREAM"] = 2] = "ENABLE_UPDATES_DOWNSTREAM";
+    HubPropertyOperation[HubPropertyOperation["DISABLE_UPDATES_DOWNSTREAM"] = 3] = "DISABLE_UPDATES_DOWNSTREAM";
+    HubPropertyOperation[HubPropertyOperation["RESET_DOWNSTREAM"] = 4] = "RESET_DOWNSTREAM";
+    HubPropertyOperation[HubPropertyOperation["REQUEST_UPDATE_DOWNSTREAM"] = 5] = "REQUEST_UPDATE_DOWNSTREAM";
+    HubPropertyOperation[HubPropertyOperation["UPDATE_UPSTREAM"] = 6] = "UPDATE_UPSTREAM";
+})(HubPropertyOperation = exports.HubPropertyOperation || (exports.HubPropertyOperation = {}));
+/**
+ * @typedef HubPropertyPayload
+ * @param {number} ADVERTISING_NAME 0x01
+ * @param {number} BUTTON_STATE 0x02
+ * @param {number} FW_VERSION 0x03
+ * @param {number} HW_VERSION 0x04
+ * @param {number} RSSI 0x05
+ * @param {number} BATTERY_VOLTAGE 0x06
+ * @param {number} BATTERY_TYPE 0x07
+ * @param {number} MANUFACTURER_NAME 0x08
+ * @param {number} RADIO_FIRMWARE_VERSION 0x09
+ * @param {number} LWP_PROTOCOL_VERSION 0x0A
+ * @param {number} SYSTEM_TYPE_ID 0x0B
+ * @param {number} HW_NETWORK_ID 0x0C
+ * @param {number} PRIMARY_MAC_ADDRESS 0x0D
+ * @param {number} SECONDARY_MAC_ADDRESS 0x0E
+ * @param {number} HW_NETWORK_FAMILY 0x0F
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-property-reference
+ */
+var HubPropertyPayload;
+(function (HubPropertyPayload) {
+    HubPropertyPayload[HubPropertyPayload["ADVERTISING_NAME"] = 1] = "ADVERTISING_NAME";
+    HubPropertyPayload[HubPropertyPayload["BUTTON_STATE"] = 2] = "BUTTON_STATE";
+    HubPropertyPayload[HubPropertyPayload["FW_VERSION"] = 3] = "FW_VERSION";
+    HubPropertyPayload[HubPropertyPayload["HW_VERSION"] = 4] = "HW_VERSION";
+    HubPropertyPayload[HubPropertyPayload["RSSI"] = 5] = "RSSI";
+    HubPropertyPayload[HubPropertyPayload["BATTERY_VOLTAGE"] = 6] = "BATTERY_VOLTAGE";
+    HubPropertyPayload[HubPropertyPayload["BATTERY_TYPE"] = 7] = "BATTERY_TYPE";
+    HubPropertyPayload[HubPropertyPayload["MANUFACTURER_NAME"] = 8] = "MANUFACTURER_NAME";
+    HubPropertyPayload[HubPropertyPayload["RADIO_FIRMWARE_VERSION"] = 9] = "RADIO_FIRMWARE_VERSION";
+    HubPropertyPayload[HubPropertyPayload["LWP_PROTOCOL_VERSION"] = 10] = "LWP_PROTOCOL_VERSION";
+    HubPropertyPayload[HubPropertyPayload["SYSTEM_TYPE_ID"] = 11] = "SYSTEM_TYPE_ID";
+    HubPropertyPayload[HubPropertyPayload["HW_NETWORK_ID"] = 12] = "HW_NETWORK_ID";
+    HubPropertyPayload[HubPropertyPayload["PRIMARY_MAC_ADDRESS"] = 13] = "PRIMARY_MAC_ADDRESS";
+    HubPropertyPayload[HubPropertyPayload["SECONDARY_MAC_ADDRESS"] = 14] = "SECONDARY_MAC_ADDRESS";
+    HubPropertyPayload[HubPropertyPayload["HW_NETWORK_FAMILY"] = 15] = "HW_NETWORK_FAMILY";
+})(HubPropertyPayload = exports.HubPropertyPayload || (exports.HubPropertyPayload = {}));
+/**
+ * @typedef ActionType
+ * @param {number} SWITCH_OFF_HUB 0x01
+ * @param {number} DISCONNECT 0x02
+ * @param {number} VCC_PORT_CONTROL_ON 0x03
+ * @param {number} VCC_PORT_CONTROL_OFF 0x04
+ * @param {number} ACTIVATE_BUSY_INDICATION 0x05
+ * @param {number} RESET_BUSY_INDICATION 0x06
+ * @param {number} SHUTDOWN 0x2F
+ * @param {number} HUB_WILL_SWITCH_OFF 0x30
+ * @param {number} HUB_WILL_DISCONNECT 0x31
+ * @param {number} HUB_WILL_GO_INTO_BOOT_MODE 0x32
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#action-types
+ */
+var ActionType;
+(function (ActionType) {
+    ActionType[ActionType["SWITCH_OFF_HUB"] = 1] = "SWITCH_OFF_HUB";
+    ActionType[ActionType["DISCONNECT"] = 2] = "DISCONNECT";
+    ActionType[ActionType["VCC_PORT_CONTROL_ON"] = 3] = "VCC_PORT_CONTROL_ON";
+    ActionType[ActionType["VCC_PORT_CONTROL_OFF"] = 4] = "VCC_PORT_CONTROL_OFF";
+    ActionType[ActionType["ACTIVATE_BUSY_INDICATION"] = 5] = "ACTIVATE_BUSY_INDICATION";
+    ActionType[ActionType["RESET_BUSY_INDICATION"] = 6] = "RESET_BUSY_INDICATION";
+    ActionType[ActionType["SHUTDOWN"] = 47] = "SHUTDOWN";
+    ActionType[ActionType["HUB_WILL_SWITCH_OFF"] = 48] = "HUB_WILL_SWITCH_OFF";
+    ActionType[ActionType["HUB_WILL_DISCONNECT"] = 49] = "HUB_WILL_DISCONNECT";
+    ActionType[ActionType["HUB_WILL_GO_INTO_BOOT_MODE"] = 50] = "HUB_WILL_GO_INTO_BOOT_MODE";
+})(ActionType = exports.ActionType || (exports.ActionType = {}));
+/**
+ * @typedef AlertType
+ * @param {number} LOW_VOLTAGE 0x01
+ * @param {number} HIGH_CURRENT 0x02
+ * @param {number} LOW_SIGNAL_STRENGTH 0x03
+ * @param {number} OVER_POWER_CONDITION 0x04
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-type
+ */
+var AlertType;
+(function (AlertType) {
+    AlertType[AlertType["LOW_VOLTAGE"] = 1] = "LOW_VOLTAGE";
+    AlertType[AlertType["HIGH_CURRENT"] = 2] = "HIGH_CURRENT";
+    AlertType[AlertType["LOW_SIGNAL_STRENGTH"] = 3] = "LOW_SIGNAL_STRENGTH";
+    AlertType[AlertType["OVER_POWER_CONDITION"] = 4] = "OVER_POWER_CONDITION";
+})(AlertType = exports.AlertType || (exports.AlertType = {}));
+/**
+ * @typedef AlertOperation
+ * @param {number} ENABLE_UPDATE 0x01
+ * @param {number} DISABLE_UPDATE 0x02
+ * @param {number} REQUEST_UPDATE 0x03
+ * @param {number} UPDATE 0x04
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-operation
+ */
+var AlertOperation;
+(function (AlertOperation) {
+    AlertOperation[AlertOperation["LOW_VOLTAGE"] = 1] = "LOW_VOLTAGE";
+    AlertOperation[AlertOperation["HIGH_CURRENT"] = 2] = "HIGH_CURRENT";
+    AlertOperation[AlertOperation["LOW_SIGNAL_STRENGTH"] = 3] = "LOW_SIGNAL_STRENGTH";
+    AlertOperation[AlertOperation["OVER_POWER_CONDITION"] = 4] = "OVER_POWER_CONDITION";
+})(AlertOperation = exports.AlertOperation || (exports.AlertOperation = {}));
+/**
+ * @typedef AlertPayload
+ * @param {number} STATUS_OK 0x00
+ * @param {number} ALERT 0xFF
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-payload
+ */
+var AlertPayload;
+(function (AlertPayload) {
+    AlertPayload[AlertPayload["STATUS_OK"] = 0] = "STATUS_OK";
+    AlertPayload[AlertPayload["ALERT"] = 255] = "ALERT";
+})(AlertPayload = exports.AlertPayload || (exports.AlertPayload = {}));
+/**
+ * @typedef Event
+ * @param {number} DETACHED_IO 0x00
+ * @param {number} ATTACHED_IO 0x01
+ * @param {number} ATTACHED_VIRTUAL_IO 0x02
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#event
+ */
+var Event;
+(function (Event) {
+    Event[Event["DETACHED_IO"] = 0] = "DETACHED_IO";
+    Event[Event["ATTACHED_IO"] = 1] = "ATTACHED_IO";
+    Event[Event["ATTACHED_VIRTUAL_IO"] = 2] = "ATTACHED_VIRTUAL_IO";
+})(Event = exports.Event || (exports.Event = {}));
+/**
+ * @typedef IOTypeID
+ * @param {number} MOTOR 0x0001
+ * @param {number} SYSTEM_TRAIN_MOTOR 0x0002
+ * @param {number} BUTTON 0x0005
+ * @param {number} LED_LIGHT 0x0008
+ * @param {number} VOLTAGE 0x0014
+ * @param {number} CURRENT 0x0015
+ * @param {number} PIEZO_TONE_SOUND 0x0016
+ * @param {number} RGB_LIGHT 0x0017
+ * @param {number} EXTERNAL_TILT_SENSOR 0x0022
+ * @param {number} MOTION_SENSOR 0x0023
+ * @param {number} VISION_SENSOR 0x0025
+ * @param {number} EXTERNAL_MOTOR 0x0026
+ * @param {number} INTERNAL_MOTOR 0x0027
+ * @param {number} INTERNAL_TILT 0x0028
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#io-type-id
+ */
+var IOTypeID;
+(function (IOTypeID) {
+    IOTypeID[IOTypeID["MOTOR"] = 1] = "MOTOR";
+    IOTypeID[IOTypeID["SYSTEM_TRAIN_MOTOR"] = 2] = "SYSTEM_TRAIN_MOTOR";
+    IOTypeID[IOTypeID["BUTTON"] = 5] = "BUTTON";
+    IOTypeID[IOTypeID["LED_LIGHT"] = 8] = "LED_LIGHT";
+    IOTypeID[IOTypeID["VOLTAGE"] = 20] = "VOLTAGE";
+    IOTypeID[IOTypeID["CURRENT"] = 21] = "CURRENT";
+    IOTypeID[IOTypeID["PIEZO_TONE_SOUND"] = 22] = "PIEZO_TONE_SOUND";
+    IOTypeID[IOTypeID["RGB_LIGHT"] = 23] = "RGB_LIGHT";
+    IOTypeID[IOTypeID["EXTERNAL_TILT_SENSOR"] = 34] = "EXTERNAL_TILT_SENSOR";
+    IOTypeID[IOTypeID["MOTION_SENSOR"] = 35] = "MOTION_SENSOR";
+    IOTypeID[IOTypeID["VISION_SENSOR"] = 37] = "VISION_SENSOR";
+    IOTypeID[IOTypeID["EXTERNAL_MOTOR"] = 38] = "EXTERNAL_MOTOR";
+    IOTypeID[IOTypeID["INTERNAL_MOTOR"] = 39] = "INTERNAL_MOTOR";
+    IOTypeID[IOTypeID["INTERNAL_TILT"] = 40] = "INTERNAL_TILT";
+})(IOTypeID = exports.IOTypeID || (exports.IOTypeID = {}));
+/**
+ * @typedef ErrorCode
+ * @param {number} ACK 0x01
+ * @param {number} MACK 0x02
+ * @param {number} BUFFER_OVERFLOW 0x03
+ * @param {number} TIMEOUT 0x04
+ * @param {number} COMMAND_NOT_RECOGNIZED 0x05
+ * @param {number} INVALID_USE 0x06
+ * @param {number} OVERCURRENT 0x07
+ * @param {number} INTERNAL_ERROR 0x08
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#error-codes
+ */
+var ErrorCode;
+(function (ErrorCode) {
+    ErrorCode[ErrorCode["ACK"] = 1] = "ACK";
+    ErrorCode[ErrorCode["MACK"] = 2] = "MACK";
+    ErrorCode[ErrorCode["BUFFER_OVERFLOW"] = 3] = "BUFFER_OVERFLOW";
+    ErrorCode[ErrorCode["TIMEOUT"] = 4] = "TIMEOUT";
+    ErrorCode[ErrorCode["COMMAND_NOT_RECOGNIZED"] = 5] = "COMMAND_NOT_RECOGNIZED";
+    ErrorCode[ErrorCode["INVALID_USE"] = 6] = "INVALID_USE";
+    ErrorCode[ErrorCode["OVERCURRENT"] = 7] = "OVERCURRENT";
+    ErrorCode[ErrorCode["INTERNAL_ERROR"] = 8] = "INTERNAL_ERROR";
+})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
+/**
+ * @typedef HWNetWorkCommandType
+ * @param {number} CONNECTION_REQUEST 0x02
+ * @param {number} FAMILY_REQUEST 0x03
+ * @param {number} FAMILY_SET 0x04
+ * @param {number} JOIN_DENIED 0x05
+ * @param {number} GET_FAMILY 0x06
+ * @param {number} FAMILY 0x07
+ * @param {number} GET_SUBFAMILY 0x08
+ * @param {number} SUBFAMILY 0x09
+ * @param {number} SUBFAMILY_SET 0x0A
+ * @param {number} GET_EXTENDED_FAMILY 0x0B
+ * @param {number} EXTENDED_FAMILY 0x0C
+ * @param {number} EXTENDED_FAMILY_SET 0x0D
+ * @param {number} RESET_LONG_PRESS_TIMING 0x0E
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-command-type
+ */
+var HWNetWorkCommandType;
+(function (HWNetWorkCommandType) {
+    HWNetWorkCommandType[HWNetWorkCommandType["CONNECTION_REQUEST"] = 2] = "CONNECTION_REQUEST";
+    HWNetWorkCommandType[HWNetWorkCommandType["FAMILY_REQUEST"] = 3] = "FAMILY_REQUEST";
+    HWNetWorkCommandType[HWNetWorkCommandType["FAMILY_SET"] = 4] = "FAMILY_SET";
+    HWNetWorkCommandType[HWNetWorkCommandType["JOIN_DENIED"] = 5] = "JOIN_DENIED";
+    HWNetWorkCommandType[HWNetWorkCommandType["GET_FAMILY"] = 6] = "GET_FAMILY";
+    HWNetWorkCommandType[HWNetWorkCommandType["FAMILY"] = 7] = "FAMILY";
+    HWNetWorkCommandType[HWNetWorkCommandType["GET_SUBFAMILY"] = 8] = "GET_SUBFAMILY";
+    HWNetWorkCommandType[HWNetWorkCommandType["SUBFAMILY"] = 9] = "SUBFAMILY";
+    HWNetWorkCommandType[HWNetWorkCommandType["SUBFAMILY_SET"] = 10] = "SUBFAMILY_SET";
+    HWNetWorkCommandType[HWNetWorkCommandType["GET_EXTENDED_FAMILY"] = 11] = "GET_EXTENDED_FAMILY";
+    HWNetWorkCommandType[HWNetWorkCommandType["EXTENDED_FAMILY"] = 12] = "EXTENDED_FAMILY";
+    HWNetWorkCommandType[HWNetWorkCommandType["EXTENDED_FAMILY_SET"] = 13] = "EXTENDED_FAMILY_SET";
+    HWNetWorkCommandType[HWNetWorkCommandType["RESET_LONG_PRESS_TIMING"] = 14] = "RESET_LONG_PRESS_TIMING";
+})(HWNetWorkCommandType = exports.HWNetWorkCommandType || (exports.HWNetWorkCommandType = {}));
+/**
+ * @typedef HWNetworkFamily
+ * @param {number} GREEN 0x01
+ * @param {number} YELLOW 0x02
+ * @param {number} RED 0x03
+ * @param {number} BLUE 0x04
+ * @param {number} PURPLE 0x05
+ * @param {number} LIGHT_BLUE 0x06
+ * @param {number} TEAL 0x07
+ * @param {number} PINK 0x08
+ * @param {number} WHITE 0x00
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-family
+ */
+var HWNetworkFamily;
+(function (HWNetworkFamily) {
+    HWNetworkFamily[HWNetworkFamily["GREEN"] = 1] = "GREEN";
+    HWNetworkFamily[HWNetworkFamily["YELLOW"] = 2] = "YELLOW";
+    HWNetworkFamily[HWNetworkFamily["RED"] = 3] = "RED";
+    HWNetworkFamily[HWNetworkFamily["BLUE"] = 4] = "BLUE";
+    HWNetworkFamily[HWNetworkFamily["PURPLE"] = 5] = "PURPLE";
+    HWNetworkFamily[HWNetworkFamily["LIGHT_BLUE"] = 6] = "LIGHT_BLUE";
+    HWNetworkFamily[HWNetworkFamily["TEAL"] = 7] = "TEAL";
+    HWNetworkFamily[HWNetworkFamily["PINK"] = 8] = "PINK";
+    HWNetworkFamily[HWNetworkFamily["WHITE"] = 0] = "WHITE";
+})(HWNetworkFamily = exports.HWNetworkFamily || (exports.HWNetworkFamily = {}));
+/**
+ * @typedef HWNetworkSubFamily
+ * @param {number} ONE_FLASH 0x01
+ * @param {number} TWO_FLASHES 0x02
+ * @param {number} THREE_FLASHES 0x03
+ * @param {number} FOUR_FLASHES 0x04
+ * @param {number} FIVE_FLASHES 0x05
+ * @param {number} SIX_FLASHES 0x06
+ * @param {number} SEVEN_FLASHES 0x07
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-sub-family
+ */
+var HWNetworkSubFamily;
+(function (HWNetworkSubFamily) {
+    HWNetworkSubFamily[HWNetworkSubFamily["ONE_FLASH"] = 1] = "ONE_FLASH";
+    HWNetworkSubFamily[HWNetworkSubFamily["TWO_FLASHES"] = 2] = "TWO_FLASHES";
+    HWNetworkSubFamily[HWNetworkSubFamily["THREE_FLASHES"] = 3] = "THREE_FLASHES";
+    HWNetworkSubFamily[HWNetworkSubFamily["FOUR_FLASHES"] = 4] = "FOUR_FLASHES";
+    HWNetworkSubFamily[HWNetworkSubFamily["FIVE_FLASHES"] = 5] = "FIVE_FLASHES";
+    HWNetworkSubFamily[HWNetworkSubFamily["SIX_FLASHES"] = 6] = "SIX_FLASHES";
+    HWNetworkSubFamily[HWNetworkSubFamily["SEVEN_FLASHES"] = 7] = "SEVEN_FLASHES";
+})(HWNetworkSubFamily = exports.HWNetworkSubFamily || (exports.HWNetworkSubFamily = {}));
+/**
+ * @typedef ModeInformationType
+ * @param {number} NAME 0x00
+ * @param {number} RAW 0x01
+ * @param {number} PCT 0x02
+ * @param {number} SI 0x03
+ * @param {number} SYMBOL 0x04
+ * @param {number} MAPPING 0x05
+ * @param {number} USED_INTERNALLY 0x06
+ * @param {number} MOTOR_BIAS 0x07
+ * @param {number} CAPABILITY_BITS 0x08
+ * @param {number} VALUE_FORMAT 0x80
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#mode-information-types
+ */
+var ModeInformationType;
+(function (ModeInformationType) {
+    ModeInformationType[ModeInformationType["NAME"] = 0] = "NAME";
+    ModeInformationType[ModeInformationType["RAW"] = 1] = "RAW";
+    ModeInformationType[ModeInformationType["PCT"] = 2] = "PCT";
+    ModeInformationType[ModeInformationType["SI"] = 3] = "SI";
+    ModeInformationType[ModeInformationType["SYMBOL"] = 4] = "SYMBOL";
+    ModeInformationType[ModeInformationType["MAPPING"] = 5] = "MAPPING";
+    ModeInformationType[ModeInformationType["USED_INTERNALLY"] = 6] = "USED_INTERNALLY";
+    ModeInformationType[ModeInformationType["MOTOR_BIAS"] = 7] = "MOTOR_BIAS";
+    ModeInformationType[ModeInformationType["CAPABILITY_BITS"] = 8] = "CAPABILITY_BITS";
+    ModeInformationType[ModeInformationType["VALUE_FORMAT"] = 128] = "VALUE_FORMAT";
+})(ModeInformationType = exports.ModeInformationType || (exports.ModeInformationType = {}));
+/**
+ * @typedef PortInputFormatSetupSubCommand
+ * @param {number} SET_MODEANDDATASET_COMBINATIONS 0x01
+ * @param {number} LOCK_LPF2_DEVICE_FOR_SETUP 0x02
+ * @param {number} UNLOCKANDSTARTWITHMULTIUPDATEENABLED 0x03
+ * @param {number} UNLOCKANDSTARTWITHMULTIUPDATEDISABLED 0x04
+ * @param {number} NOT_USED 0x05
+ * @param {number} RESET_SENSOR 0x06
+ * @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#port-input-format-setup-sub-commands
+ */
+var PortInputFormatSetupSubCommand;
+(function (PortInputFormatSetupSubCommand) {
+    PortInputFormatSetupSubCommand[PortInputFormatSetupSubCommand["SET_MODEANDDATASET_COMBINATIONS"] = 1] = "SET_MODEANDDATASET_COMBINATIONS";
+    PortInputFormatSetupSubCommand[PortInputFormatSetupSubCommand["LOCK_LPF2_DEVICE_FOR_SETUP"] = 2] = "LOCK_LPF2_DEVICE_FOR_SETUP";
+    PortInputFormatSetupSubCommand[PortInputFormatSetupSubCommand["UNLOCKANDSTARTWITHMULTIUPDATEENABLED"] = 3] = "UNLOCKANDSTARTWITHMULTIUPDATEENABLED";
+    PortInputFormatSetupSubCommand[PortInputFormatSetupSubCommand["UNLOCKANDSTARTWITHMULTIUPDATEDISABLED"] = 4] = "UNLOCKANDSTARTWITHMULTIUPDATEDISABLED";
+    PortInputFormatSetupSubCommand[PortInputFormatSetupSubCommand["NOT_USED"] = 5] = "NOT_USED";
+    PortInputFormatSetupSubCommand[PortInputFormatSetupSubCommand["RESET_SENSOR"] = 6] = "RESET_SENSOR";
+})(PortInputFormatSetupSubCommand = exports.PortInputFormatSetupSubCommand || (exports.PortInputFormatSetupSubCommand = {}));
+/**
+ * @typedef MarioPantsType
+ * @param {number} NONE 0x00
+ * @param {number} PROPELLER 0x06
+ * @param {number} CAT 0x11
+ * @param {number} FIRE 0x12
+ * @param {number} NORMAL 0x21
+ * @param {number} BUILDER 0x22
+ */
+var MarioPantsType;
+(function (MarioPantsType) {
+    MarioPantsType[MarioPantsType["NONE"] = 0] = "NONE";
+    MarioPantsType[MarioPantsType["PROPELLER"] = 6] = "PROPELLER";
+    MarioPantsType[MarioPantsType["CAT"] = 17] = "CAT";
+    MarioPantsType[MarioPantsType["FIRE"] = 18] = "FIRE";
+    MarioPantsType[MarioPantsType["NORMAL"] = 33] = "NORMAL";
+    MarioPantsType[MarioPantsType["BUILDER"] = 34] = "BUILDER";
+})(MarioPantsType = exports.MarioPantsType || (exports.MarioPantsType = {}));
+/**
+ * @typedef MarioColor
+ * @param {number} WHITE 0x1300
+ * @param {number} RED 0x1500
+ * @param {number} BLUE 0x1700
+ * @param {number} YELLOW 0x1800
+ * @param {number} BLACK 0x1a00
+ * @param {number} GREEN 0x2500
+ * @param {number} BROWN 0x6a00
+ * @param {number} CYAN 0x4201
+ */
+var MarioColor;
+(function (MarioColor) {
+    MarioColor[MarioColor["WHITE"] = 4864] = "WHITE";
+    MarioColor[MarioColor["RED"] = 5376] = "RED";
+    MarioColor[MarioColor["BLUE"] = 5888] = "BLUE";
+    MarioColor[MarioColor["YELLOW"] = 6144] = "YELLOW";
+    MarioColor[MarioColor["BLACK"] = 6656] = "BLACK";
+    MarioColor[MarioColor["GREEN"] = 9472] = "GREEN";
+    MarioColor[MarioColor["BROWN"] = 27136] = "BROWN";
+    MarioColor[MarioColor["CYAN"] = 16897] = "CYAN";
+})(MarioColor = exports.MarioColor || (exports.MarioColor = {}));
+//# sourceMappingURL=consts.js.map
+
+
+ + + + +
+ +
+ + + + + + + + + + diff --git a/docs/devices_absolutemotor.js.html b/docs/devices_absolutemotor.js.html index 103baf9..65d6dc3 100644 --- a/docs/devices_absolutemotor.js.html +++ b/docs/devices_absolutemotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_basicmotor.js.html b/docs/devices_basicmotor.js.html index 1a5c54e..aac5247 100644 --- a/docs/devices_basicmotor.js.html +++ b/docs/devices_basicmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_colordistancesensor.js.html b/docs/devices_colordistancesensor.js.html index 175f54d..a2d091c 100644 --- a/docs/devices_colordistancesensor.js.html +++ b/docs/devices_colordistancesensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_currentsensor.js.html b/docs/devices_currentsensor.js.html index dbba8de..6ab1504 100644 --- a/docs/devices_currentsensor.js.html +++ b/docs/devices_currentsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_device.js.html b/docs/devices_device.js.html index 3d59488..e0b6097 100644 --- a/docs/devices_device.js.html +++ b/docs/devices_device.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_duplotrainbasecolorsensor.js.html b/docs/devices_duplotrainbasecolorsensor.js.html index f094edb..4101dbe 100644 --- a/docs/devices_duplotrainbasecolorsensor.js.html +++ b/docs/devices_duplotrainbasecolorsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_duplotrainbasemotor.js.html b/docs/devices_duplotrainbasemotor.js.html index 2ec6d84..8e01192 100644 --- a/docs/devices_duplotrainbasemotor.js.html +++ b/docs/devices_duplotrainbasemotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_duplotrainbasespeaker.js.html b/docs/devices_duplotrainbasespeaker.js.html index 45fc2dc..295aad7 100644 --- a/docs/devices_duplotrainbasespeaker.js.html +++ b/docs/devices_duplotrainbasespeaker.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_duplotrainbasespeedometer.js.html b/docs/devices_duplotrainbasespeedometer.js.html index ef4a1bb..ce94c0e 100644 --- a/docs/devices_duplotrainbasespeedometer.js.html +++ b/docs/devices_duplotrainbasespeedometer.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_hubled.js.html b/docs/devices_hubled.js.html index f7a2d30..000027e 100644 --- a/docs/devices_hubled.js.html +++ b/docs/devices_hubled.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_light.js.html b/docs/devices_light.js.html index 252aaa1..7d28627 100644 --- a/docs/devices_light.js.html +++ b/docs/devices_light.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_marioaccelerometer.js.html b/docs/devices_marioaccelerometer.js.html index 566b350..ee38698 100644 --- a/docs/devices_marioaccelerometer.js.html +++ b/docs/devices_marioaccelerometer.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_mariobarcodesensor.js.html b/docs/devices_mariobarcodesensor.js.html index 7947e72..2af978f 100644 --- a/docs/devices_mariobarcodesensor.js.html +++ b/docs/devices_mariobarcodesensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_mariopantssensor.js.html b/docs/devices_mariopantssensor.js.html index b45d31e..8612d9a 100644 --- a/docs/devices_mariopantssensor.js.html +++ b/docs/devices_mariopantssensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_mediumlinearmotor.js.html b/docs/devices_mediumlinearmotor.js.html index 0b25cd2..7e318ca 100644 --- a/docs/devices_mediumlinearmotor.js.html +++ b/docs/devices_mediumlinearmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_motionsensor.js.html b/docs/devices_motionsensor.js.html index dd736de..6ecc711 100644 --- a/docs/devices_motionsensor.js.html +++ b/docs/devices_motionsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_movehubmediumlinearmotor.js.html b/docs/devices_movehubmediumlinearmotor.js.html index 34b82d4..ef31caa 100644 --- a/docs/devices_movehubmediumlinearmotor.js.html +++ b/docs/devices_movehubmediumlinearmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_movehubtiltsensor.js.html b/docs/devices_movehubtiltsensor.js.html index 1f63529..8f09df9 100644 --- a/docs/devices_movehubtiltsensor.js.html +++ b/docs/devices_movehubtiltsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_piezobuzzer.js.html b/docs/devices_piezobuzzer.js.html index 95b0996..17f35a5 100644 --- a/docs/devices_piezobuzzer.js.html +++ b/docs/devices_piezobuzzer.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_remotecontrolbutton.js.html b/docs/devices_remotecontrolbutton.js.html index 24551fe..a114dfa 100644 --- a/docs/devices_remotecontrolbutton.js.html +++ b/docs/devices_remotecontrolbutton.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_simplemediumlinearmotor.js.html b/docs/devices_simplemediumlinearmotor.js.html index c9dfd79..7f348d7 100644 --- a/docs/devices_simplemediumlinearmotor.js.html +++ b/docs/devices_simplemediumlinearmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_tachomotor.js.html b/docs/devices_tachomotor.js.html index f0a042d..5845db4 100644 --- a/docs/devices_tachomotor.js.html +++ b/docs/devices_tachomotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_techniccolorsensor.js.html b/docs/devices_techniccolorsensor.js.html index 1271a72..12c68f2 100644 --- a/docs/devices_techniccolorsensor.js.html +++ b/docs/devices_techniccolorsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicdistancesensor.js.html b/docs/devices_technicdistancesensor.js.html index fcaff01..303703b 100644 --- a/docs/devices_technicdistancesensor.js.html +++ b/docs/devices_technicdistancesensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicforcesensor.js.html b/docs/devices_technicforcesensor.js.html index b3a5c78..643ed76 100644 --- a/docs/devices_technicforcesensor.js.html +++ b/docs/devices_technicforcesensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_techniclargeangularmotor.js.html b/docs/devices_techniclargeangularmotor.js.html index d0e47c9..531844b 100644 --- a/docs/devices_techniclargeangularmotor.js.html +++ b/docs/devices_techniclargeangularmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_techniclargelinearmotor.js.html b/docs/devices_techniclargelinearmotor.js.html index abfc299..eb4c76c 100644 --- a/docs/devices_techniclargelinearmotor.js.html +++ b/docs/devices_techniclargelinearmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicmediumangularmotor.js.html b/docs/devices_technicmediumangularmotor.js.html index 746393d..3c248ee 100644 --- a/docs/devices_technicmediumangularmotor.js.html +++ b/docs/devices_technicmediumangularmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicmediumhubaccelerometersensor.js.html b/docs/devices_technicmediumhubaccelerometersensor.js.html index 3a1b743..08c3f7b 100644 --- a/docs/devices_technicmediumhubaccelerometersensor.js.html +++ b/docs/devices_technicmediumhubaccelerometersensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicmediumhubgyrosensor.js.html b/docs/devices_technicmediumhubgyrosensor.js.html index 5ae68cc..a64c408 100644 --- a/docs/devices_technicmediumhubgyrosensor.js.html +++ b/docs/devices_technicmediumhubgyrosensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicmediumhubtiltsensor.js.html b/docs/devices_technicmediumhubtiltsensor.js.html index 4d66225..dc90f03 100644 --- a/docs/devices_technicmediumhubtiltsensor.js.html +++ b/docs/devices_technicmediumhubtiltsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_technicxlargelinearmotor.js.html b/docs/devices_technicxlargelinearmotor.js.html index 46da883..72f4f91 100644 --- a/docs/devices_technicxlargelinearmotor.js.html +++ b/docs/devices_technicxlargelinearmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_tiltsensor.js.html b/docs/devices_tiltsensor.js.html index 9bf29a2..30b1513 100644 --- a/docs/devices_tiltsensor.js.html +++ b/docs/devices_tiltsensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_trainmotor.js.html b/docs/devices_trainmotor.js.html index a6672dd..4f4b6a6 100644 --- a/docs/devices_trainmotor.js.html +++ b/docs/devices_trainmotor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/devices_voltagesensor.js.html b/docs/devices_voltagesensor.js.html index 5d10136..f1a6697 100644 --- a/docs/devices_voltagesensor.js.html +++ b/docs/devices_voltagesensor.js.html @@ -70,12 +70,12 @@
diff --git a/docs/global.html b/docs/global.html new file mode 100644 index 0000000..be857a8 --- /dev/null +++ b/docs/global.html @@ -0,0 +1,9336 @@ + + + + + + + + + Global - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ Global +

+ + + + +
+
+ +

+ + + +

+ + + +
+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + +

Type Definitions

+ + + + + + + + + + + + + +

+ ActionType +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#action-types

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
SWITCH_OFF_HUB + + + + number + + + + + + + +

0x01

+ +
DISCONNECT + + + + number + + + + + + + +

0x02

+ +
VCC_PORT_CONTROL_ON + + + + number + + + + + + + +

0x03

+ +
VCC_PORT_CONTROL_OFF + + + + number + + + + + + + +

0x04

+ +
ACTIVATE_BUSY_INDICATION + + + + number + + + + + + + +

0x05

+ +
RESET_BUSY_INDICATION + + + + number + + + + + + + +

0x06

+ +
SHUTDOWN + + + + number + + + + + + + +

0x2F

+ +
HUB_WILL_SWITCH_OFF + + + + number + + + + + + + +

0x30

+ +
HUB_WILL_DISCONNECT + + + + number + + + + + + + +

0x31

+ +
HUB_WILL_GO_INTO_BOOT_MODE + + + + number + + + + + + + +

0x32

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ AlertOperation +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-operation

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ENABLE_UPDATE + + + + number + + + + + + + +

0x01

+ +
DISABLE_UPDATE + + + + number + + + + + + + +

0x02

+ +
REQUEST_UPDATE + + + + number + + + + + + + +

0x03

+ +
UPDATE + + + + number + + + + + + + +

0x04

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ AlertPayload +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-payload

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
STATUS_OK + + + + number + + + + + + + +

0x00

+ +
ALERT + + + + number + + + + + + + +

0xFF

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ AlertType +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#alert-type

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
LOW_VOLTAGE + + + + number + + + + + + + +

0x01

+ +
HIGH_CURRENT + + + + number + + + + + + + +

0x02

+ +
LOW_SIGNAL_STRENGTH + + + + number + + + + + + + +

0x03

+ +
OVER_POWER_CONDITION + + + + number + + + + + + + +

0x04

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ BrakingStyle +

+
+ + + + + + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
HOLD + + + + number + + + + + + + +

127

+
BRAKE + + + + number + + + + + + + +

128

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ ButtonState +

+
+ + + + + + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
PRESSED + + + + number + + + + + + + +

0

+
RELEASED + + + + number + + + + + + + +

1

+
UP + + + + number + + + + + + + +

2

+
DOWN + + + + number + + + + + + + +

3

+
STOP + + + + number + + + + + + + +

4

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ Color +

+
+ + + + + + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
BLACK + + + + number + + + + + + + +

0

+
PINK + + + + number + + + + + + + +

1

+
PURPLE + + + + number + + + + + + + +

2

+
BLUE + + + + number + + + + + + + +

3

+
LIGHT_BLUE + + + + number + + + + + + + +

4

+
CYAN + + + + number + + + + + + + +

5

+
GREEN + + + + number + + + + + + + +

6

+
YELLOW + + + + number + + + + + + + +

7

+
ORANGE + + + + number + + + + + + + +

8

+
RED + + + + number + + + + + + + +

9

+
WHITE + + + + number + + + + + + + +

10

+
NONE + + + + number + + + + + + + +

255

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ DeviceType +

+
+ + + + + + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
UNKNOWN + + + + number + + + + + + + +

0

+
SIMPLE_MEDIUM_LINEAR_MOTOR + + + + number + + + + + + + +

1

+
TRAIN_MOTOR + + + + number + + + + + + + +

2

+
LED_LIGHTS + + + + number + + + + + + + +

8

+
VOLTAGE + + + + number + + + + + + + +

20

+
CURRENT + + + + number + + + + + + + +

21

+
PIEZO_TONE + + + + number + + + + + + + +

22

+
RGB_LIGHT + + + + number + + + + + + + +

23

+
WEDO2_TILT + + + + number + + + + + + + +

34

+
WEDO2_DISTANCE + + + + number + + + + + + + +

35

+
COLOR_DISTANCE_SENSOR + + + + number + + + + + + + +

37

+
MEDIUM_LINEAR_MOTOR + + + + number + + + + + + + +

38

+
MOVE_HUB_MEDIUM_LINEAR_MOTOR + + + + number + + + + + + + +

39

+
BOOST_TILT + + + + number + + + + + + + +

40

+
DUPLO_TRAIN_BASE_MOTOR + + + + number + + + + + + + +

41

+
DUPLO_TRAIN_BASE_SPEAKER + + + + number + + + + + + + +

42

+
DUPLO_TRAIN_BASE_COLOR + + + + number + + + + + + + +

43

+
DUPLO_TRAIN_BASE_SPEEDOMETER + + + + number + + + + + + + +

44

+
CONTROL_PLUS_LARGE_MOTOR + + + + number + + + + + + + +

46

+
CONTROL_PLUS_XLARGE_MOTOR + + + + number + + + + + + + +

47

+
POWERED_UP_REMOTE_BUTTON + + + + number + + + + + + + +

55

+
RSSI + + + + number + + + + + + + +

56

+
CONTROL_PLUS_ACCELEROMETER + + + + number + + + + + + + +

58

+
CONTROL_PLUS_TILT + + + + number + + + + + + + +

59

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ DuploTrainBaseSound +

+
+ + + + + + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
BRAKE + + + + number + + + + + + + +

3

+
STATION_DEPARTURE + + + + number + + + + + + + +

5

+
WATER_REFILL + + + + number + + + + + + + +

7

+
HORN + + + + number + + + + + + + +

9

+
STEAM + + + + number + + + + + + + +

10

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ ErrorCode +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#error-codes

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ACK + + + + number + + + + + + + +

0x01

+ +
MACK + + + + number + + + + + + + +

0x02

+ +
BUFFER_OVERFLOW + + + + number + + + + + + + +

0x03

+ +
TIMEOUT + + + + number + + + + + + + +

0x04

+ +
COMMAND_NOT_RECOGNIZED + + + + number + + + + + + + +

0x05

+ +
INVALID_USE + + + + number + + + + + + + +

0x06

+ +
OVERCURRENT + + + + number + + + + + + + +

0x07

+ +
INTERNAL_ERROR + + + + number + + + + + + + +

0x08

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ Event +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#event

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
DETACHED_IO + + + + number + + + + + + + +

0x00

+ +
ATTACHED_IO + + + + number + + + + + + + +

0x01

+ +
ATTACHED_VIRTUAL_IO + + + + number + + + + + + + +

0x02

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HubPropertyOperation +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-property-reference

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
SET_DOWNSTREAM + + + + number + + + + + + + +

0x01

+ +
ENABLE_UPDATES_DOWNSTREAM + + + + number + + + + + + + +

0x02

+ +
DISABLE_UPDATES_DOWNSTREAM + + + + number + + + + + + + +

0x03

+ +
RESET_DOWNSTREAM + + + + number + + + + + + + +

0x04

+ +
REQUEST_UPDATE_DOWNSTREAM + + + + number + + + + + + + +

0x05

+ +
UPDATE_UPSTREAM + + + + number + + + + + + + +

0x06

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HubPropertyPayload +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-property-reference

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ADVERTISING_NAME + + + + number + + + + + + + +

0x01

+ +
BUTTON_STATE + + + + number + + + + + + + +

0x02

+ +
FW_VERSION + + + + number + + + + + + + +

0x03

+ +
HW_VERSION + + + + number + + + + + + + +

0x04

+ +
RSSI + + + + number + + + + + + + +

0x05

+ +
BATTERY_VOLTAGE + + + + number + + + + + + + +

0x06

+ +
BATTERY_TYPE + + + + number + + + + + + + +

0x07

+ +
MANUFACTURER_NAME + + + + number + + + + + + + +

0x08

+ +
RADIO_FIRMWARE_VERSION + + + + number + + + + + + + +

0x09

+ +
LWP_PROTOCOL_VERSION + + + + number + + + + + + + +

0x0A

+ +
SYSTEM_TYPE_ID + + + + number + + + + + + + +

0x0B

+ +
HW_NETWORK_ID + + + + number + + + + + + + +

0x0C

+ +
PRIMARY_MAC_ADDRESS + + + + number + + + + + + + +

0x0D

+ +
SECONDARY_MAC_ADDRESS + + + + number + + + + + + + +

0x0E

+ +
HW_NETWORK_FAMILY + + + + number + + + + + + + +

0x0F

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HubPropertyReference +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-property-reference

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ADVERTISING_NAME + + + + number + + + + + + + +

0x01

+ +
BUTTON + + + + number + + + + + + + +

0x02

+ +
FW_VERSION + + + + number + + + + + + + +

0x03

+ +
HW_VERSION + + + + number + + + + + + + +

0x04

+ +
RSSI + + + + number + + + + + + + +

0x05

+ +
BATTERY_VOLTAGE + + + + number + + + + + + + +

0x06

+ +
BATTERY_TYPE + + + + number + + + + + + + +

0x07

+ +
MANUFACTURER_NAME + + + + number + + + + + + + +

0x08

+ +
RADIO_FIRMWARE_VERSION + + + + number + + + + + + + +

0x09

+ +
LEGO_WIRELESS_PROTOCOL_VERSION + + + + number + + + + + + + +

0x0A

+ +
SYSTEM_TYPE_ID + + + + number + + + + + + + +

0x0B

+ +
HW_NETWORK_ID + + + + number + + + + + + + +

0x0C

+ +
PRIMARY_MAC_ADDRESS + + + + number + + + + + + + +

0x0D

+ +
SECONDARY_MAC_ADDRESS + + + + number + + + + + + + +

0x0E

+ +
HARDWARE_NETWORK_FAMILY + + + + number + + + + + + + +

0x0F

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HubType +

+
+ + + + + + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
UNKNOWN + + + + number + + + + + + + +

0

+
WEDO2_SMART_HUB + + + + number + + + + + + + +

1

+
MOVE_HUB + + + + number + + + + + + + +

2

+
POWERED_UP_HUB + + + + number + + + + + + + +

3

+
POWERED_UP_REMOTE + + + + number + + + + + + + +

4

+
DUPLO_TRAIN_HUB + + + + number + + + + + + + +

5

+
CONTROL_PLUS_HUB + + + + number + + + + + + + +

6

+
MARIO + + + + number + + + + + + + +

7

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HWNetWorkCommandType +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-command-type

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
CONNECTION_REQUEST + + + + number + + + + + + + +

0x02

+ +
FAMILY_REQUEST + + + + number + + + + + + + +

0x03

+ +
FAMILY_SET + + + + number + + + + + + + +

0x04

+ +
JOIN_DENIED + + + + number + + + + + + + +

0x05

+ +
GET_FAMILY + + + + number + + + + + + + +

0x06

+ +
FAMILY + + + + number + + + + + + + +

0x07

+ +
GET_SUBFAMILY + + + + number + + + + + + + +

0x08

+ +
SUBFAMILY + + + + number + + + + + + + +

0x09

+ +
SUBFAMILY_SET + + + + number + + + + + + + +

0x0A

+ +
GET_EXTENDED_FAMILY + + + + number + + + + + + + +

0x0B

+ +
EXTENDED_FAMILY + + + + number + + + + + + + +

0x0C

+ +
EXTENDED_FAMILY_SET + + + + number + + + + + + + +

0x0D

+ +
RESET_LONG_PRESS_TIMING + + + + number + + + + + + + +

0x0E

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HWNetworkFamily +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-family

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
GREEN + + + + number + + + + + + + +

0x01

+ +
YELLOW + + + + number + + + + + + + +

0x02

+ +
RED + + + + number + + + + + + + +

0x03

+ +
BLUE + + + + number + + + + + + + +

0x04

+ +
PURPLE + + + + number + + + + + + + +

0x05

+ +
LIGHT_BLUE + + + + number + + + + + + + +

0x06

+ +
TEAL + + + + number + + + + + + + +

0x07

+ +
PINK + + + + number + + + + + + + +

0x08

+ +
WHITE + + + + number + + + + + + + +

0x00

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ HWNetworkSubFamily +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-sub-family

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ONE_FLASH + + + + number + + + + + + + +

0x01

+ +
TWO_FLASHES + + + + number + + + + + + + +

0x02

+ +
THREE_FLASHES + + + + number + + + + + + + +

0x03

+ +
FOUR_FLASHES + + + + number + + + + + + + +

0x04

+ +
FIVE_FLASHES + + + + number + + + + + + + +

0x05

+ +
SIX_FLASHES + + + + number + + + + + + + +

0x06

+ +
SEVEN_FLASHES + + + + number + + + + + + + +

0x07

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ IOTypeID +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#io-type-id

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
MOTOR + + + + number + + + + + + + +

0x0001

+ +
SYSTEM_TRAIN_MOTOR + + + + number + + + + + + + +

0x0002

+ +
BUTTON + + + + number + + + + + + + +

0x0005

+ +
LED_LIGHT + + + + number + + + + + + + +

0x0008

+ +
VOLTAGE + + + + number + + + + + + + +

0x0014

+ +
CURRENT + + + + number + + + + + + + +

0x0015

+ +
PIEZO_TONE_SOUND + + + + number + + + + + + + +

0x0016

+ +
RGB_LIGHT + + + + number + + + + + + + +

0x0017

+ +
EXTERNAL_TILT_SENSOR + + + + number + + + + + + + +

0x0022

+ +
MOTION_SENSOR + + + + number + + + + + + + +

0x0023

+ +
VISION_SENSOR + + + + number + + + + + + + +

0x0025

+ +
EXTERNAL_MOTOR + + + + number + + + + + + + +

0x0026

+ +
INTERNAL_MOTOR + + + + number + + + + + + + +

0x0027

+ +
INTERNAL_TILT + + + + number + + + + + + + +

0x0028

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ MarioColor +

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
WHITE + + + + number + + + + + + + +

0x1300

+ +
RED + + + + number + + + + + + + +

0x1500

+ +
BLUE + + + + number + + + + + + + +

0x1700

+ +
YELLOW + + + + number + + + + + + + +

0x1800

+ +
BLACK + + + + number + + + + + + + +

0x1a00

+ +
GREEN + + + + number + + + + + + + +

0x2500

+ +
BROWN + + + + number + + + + + + + +

0x6a00

+ +
CYAN + + + + number + + + + + + + +

0x4201

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ MarioPantsType +

+
+ + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
NONE + + + + number + + + + + + + +

0x00

+ +
PROPELLER + + + + number + + + + + + + +

0x06

+ +
CAT + + + + number + + + + + + + +

0x11

+ +
FIRE + + + + number + + + + + + + +

0x12

+ +
NORMAL + + + + number + + + + + + + +

0x21

+ +
BUILDER + + + + number + + + + + + + +

0x22

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ MessageType +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#message-types

+
+ + + + + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
HUB_PROPERTIES + + + + number + + + + + + + +

0x01

+
HUB_ACTIONS + + + + number + + + + + + + +

0x02

+
HUB_ALERTS + + + + number + + + + + + + +

0x03

+
HUB_ATTACHED_IO + + + + number + + + + + + + +

0x04

+
GENERIC_ERROR_MESSAGES + + + + number + + + + + + + +

0x05

+
HW_NETWORK_COMMANDS + + + + number + + + + + + + +

0x08

+
FW_UPDATE_GO_INTO_BOOT_MODE + + + + number + + + + + + + +

0x10

+
FW_UPDATE_LOCK_MEMORY + + + + number + + + + + + + +

0x11

+
FW_UPDATE_LOCK_STATUS_REQUEST + + + + number + + + + + + + +

0x12

+
FW_LOCK_STATUS + + + + number + + + + + + + +

0x13

+
PORT_INFORMATION_REQUEST + + + + number + + + + + + + +

0x21

+
PORT_MODE_INFORMATION_REQUEST + + + + number + + + + + + + +

0x22

+
PORT_INPUT_FORMAT_SETUP_SINGLE + + + + number + + + + + + + +

0x41

+
PORT_INPUT_FORMAT_SETUP_COMBINEDMODE + + + + number + + + + + + + +

0x42

+
PORT_INFORMATION + + + + number + + + + + + + +

0x43

+
PORT_MODE_INFORMATION + + + + number + + + + + + + +

0x44

+
PORT_VALUE_SINGLE + + + + number + + + + + + + +

0x45

+
PORT_VALUE_COMBINEDMODE + + + + number + + + + + + + +

0x46

+
PORT_INPUT_FORMAT_SINGLE + + + + number + + + + + + + +

0x47

+
PORT_INPUT_FORMAT_COMBINEDMODE + + + + number + + + + + + + +

0x48

+
VIRTUAL_PORT_SETUP + + + + number + + + + + + + +

0x61

+
PORT_OUTPUT_COMMAND + + + + number + + + + + + + +

0x81

+
PORT_OUTPUT_COMMAND_FEEDBACK + + + + number + + + + + + + +

0x82

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ ModeInformationType +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#mode-information-types

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
NAME + + + + number + + + + + + + +

0x00

+ +
RAW + + + + number + + + + + + + +

0x01

+ +
PCT + + + + number + + + + + + + +

0x02

+ +
SI + + + + number + + + + + + + +

0x03

+ +
SYMBOL + + + + number + + + + + + + +

0x04

+ +
MAPPING + + + + number + + + + + + + +

0x05

+ +
USED_INTERNALLY + + + + number + + + + + + + +

0x06

+ +
MOTOR_BIAS + + + + number + + + + + + + +

0x07

+ +
CAPABILITY_BITS + + + + number + + + + + + + +

0x08

+ +
VALUE_FORMAT + + + + number + + + + + + + +

0x80

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ PortInputFormatSetupSubCommand +

+
+ + + + + +
+

https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#port-input-format-setup-sub-commands

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
SET_MODEANDDATASET_COMBINATIONS + + + + number + + + + + + + +

0x01

+ +
LOCK_LPF2_DEVICE_FOR_SETUP + + + + number + + + + + + + +

0x02

+ +
UNLOCKANDSTARTWITHMULTIUPDATEENABLED + + + + number + + + + + + + +

0x03

+ +
UNLOCKANDSTARTWITHMULTIUPDATEDISABLED + + + + number + + + + + + + +

0x04

+ +
NOT_USED + + + + number + + + + + + + +

0x05

+ +
RESET_SENSOR + + + + number + + + + + + + +

0x06

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+ + + + + + + + + + \ No newline at end of file diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html index 2f4b3c6..8b613a6 100644 --- a/docs/hubs_basehub.js.html +++ b/docs/hubs_basehub.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_duplotrainbase.js.html b/docs/hubs_duplotrainbase.js.html index b00273c..cba90be 100644 --- a/docs/hubs_duplotrainbase.js.html +++ b/docs/hubs_duplotrainbase.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_hub.js.html b/docs/hubs_hub.js.html index e36fdfb..b17583b 100644 --- a/docs/hubs_hub.js.html +++ b/docs/hubs_hub.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_lpf2hub.js.html b/docs/hubs_lpf2hub.js.html index 6d4e9e8..f445821 100644 --- a/docs/hubs_lpf2hub.js.html +++ b/docs/hubs_lpf2hub.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_mario.js.html b/docs/hubs_mario.js.html index aa30813..ebb6570 100644 --- a/docs/hubs_mario.js.html +++ b/docs/hubs_mario.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_movehub.js.html b/docs/hubs_movehub.js.html index 27923c6..9dc8b9c 100644 --- a/docs/hubs_movehub.js.html +++ b/docs/hubs_movehub.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_remotecontrol.js.html b/docs/hubs_remotecontrol.js.html index 6e2ab84..9359a06 100644 --- a/docs/hubs_remotecontrol.js.html +++ b/docs/hubs_remotecontrol.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_technicmediumhub.js.html b/docs/hubs_technicmediumhub.js.html index 5ac20da..bdc0eae 100644 --- a/docs/hubs_technicmediumhub.js.html +++ b/docs/hubs_technicmediumhub.js.html @@ -70,12 +70,12 @@
diff --git a/docs/hubs_wedo2smarthub.js.html b/docs/hubs_wedo2smarthub.js.html index 6790d97..27f4f64 100644 --- a/docs/hubs_wedo2smarthub.js.html +++ b/docs/hubs_wedo2smarthub.js.html @@ -70,12 +70,12 @@
diff --git a/docs/index.html b/docs/index.html index 8a43cf3..c7e4dc0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -68,12 +68,12 @@
@@ -92,7 +92,8 @@

Drone
-NPM Version

+NPM Version
+Docs

node-poweredup - A Javascript module to interface with LEGO Powered Up components.

Announcements