Global

Type Definitions

ActionType

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

Source:

AlertOperation

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

Source:

AlertPayload

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

Source:

AlertType

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

Source:

BrakingStyle

Properties:
Name Type Description
FLOAT number

0

HOLD number

127

BRAKE number

128

Source:

ButtonState

Properties:
Name Type Description
PRESSED number

2

RELEASED number

0

UP number

1

DOWN number

255

STOP number

127

Source:

Color

Properties:
Name Type Description
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:
Name Type Description
UNKNOWN number

0

SIMPLE_MEDIUM_LINEAR_MOTOR number

1

TRAIN_MOTOR number

2

LIGHT number

8

VOLTAGE_SENSOR number

20

CURRENT_SENSOR number

21

PIEZO_BUZZER number

22

HUB_LED number

23

TILT_SENSOR number

34

MOTION_SENSOR number

35

COLOR_DISTANCE_SENSOR number

37

MEDIUM_LINEAR_MOTOR number

38

MOVE_HUB_MEDIUM_LINEAR_MOTOR number

39

MOVE_HUB_TILT_SENSOR number

40

DUPLO_TRAIN_BASE_MOTOR number

41

DUPLO_TRAIN_BASE_SPEAKER number

42

DUPLO_TRAIN_BASE_COLOR_SENSOR number

43

DUPLO_TRAIN_BASE_SPEEDOMETER number

44

TECHNIC_LARGE_LINEAR_MOTOR number

46

TECHNIC_XLARGE_LINEAR_MOTOR number

47

TECHNIC_MEDIUM_ANGULAR_MOTOR number

48

TECHNIC_LARGE_ANGULAR_MOTOR number

49

TECHNIC_MEDIUM_HUB_GEST_SENSOR number

54

REMOTE_CONTROL_BUTTON number

55

REMOTE_CONTROL_RSSI number

56

TECHNIC_MEDIUM_HUB_ACCELEROMETER number

57

TECHNIC_MEDIUM_HUB_GYRO_SENSOR number

58

TECHNIC_MEDIUM_HUB_TILT_SENSOR number

59

TECHNIC_MEDIUM_HUB_TEMPERATURE_SENSOR number

60

TECHNIC_COLOR_SENSOR number

61

TECHNIC_DISTANCE_SENSOR number

62

TECHNIC_FORCE_SENSOR number

63

TECHNIC_3X3_COLOR_LIGHT_MATRIX number

64

TECHNIC_SMALL_ANGULAR_MOTOR number

65

MARIO_ACCELEROMETER number

71

MARIO_BARCODE_SENSOR number

73

MARIO_PANTS_SENSOR number

74

TECHNIC_MEDIUM_ANGULAR_MOTOR_GREY number

75

TECHNIC_LARGE_ANGULAR_MOTOR_GREY number

76

Source:

DuploTrainBaseSound

Properties:
Name Type Description
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

Source:

Event

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

Source:

HWNetWorkCommandType

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

Source:

HWNetworkFamily

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

Source:

HWNetworkSubFamily

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

Source:

HubPropertyOperation

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

Source:

HubPropertyPayload

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

Source:

HubPropertyReference

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

Source:

HubType

Properties:
Name Type Description
UNKNOWN number

0

WEDO2_SMART_HUB number

1

MOVE_HUB number

2

HUB number

3

REMOTE_CONTROL number

4

DUPLO_TRAIN_BASE number

5

TECHNIC_MEDIUM_HUB number

6

MARIO number

7

TECHNIC_SMALL_HUB number

8

Source:

IOTypeID

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

Source:

MarioColor

Source:

MarioPantsType

Source:

MessageType

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

Properties:
Name Type Description
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

Source:

PortInputFormatSetupSubCommand

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

Source: