LEGO Wireless Protocol v3

Additional modules:

This module and its submodules are used for Bluetooth Low Energy communications with devices that provide the LEGO Wireless Protocol v3.

class AdvertisementData(data: bytes)

The 6-byte manufacturer-specific advertisement data sent when a hub running official LEGO firmware is advertising.

property hub_capabilities: Capabilities

Gets the hub capability flags.

property hub_kind: HubKind

Gets the hub type identifier.

property is_button_pressed: bool

Gets the state of the button on the hub.

property last_network: LastNetwork

Gets the ID of the last network the hub was connected to.

property status: Status

Gets the status of the advertising hub.

LEGO_CID = 919

LEGO System A/S company identifier.

This number is assigned by the Bluetooth SIG.

https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/

LWP3_BOOTLOADER_CHARACTERISTIC_UUID = '00001626-1212-efde-1623-785feabcd123'

LEGO wireless protocol v3 bootloader characteristic UUID.

LWP3_BOOTLOADER_SERVICE_UUID = '00001625-1212-efde-1623-785feabcd123'

LEGO wireless protocol v3 bootloader service UUID.

LWP3_HUB_CHARACTERISTIC_UUID = '00001624-1212-efde-1623-785feabcd123'

LEGO wireless protocol v3 hub characteristic UUID.

LWP3_HUB_SERVICE_UUID = '00001623-1212-efde-1623-785feabcd123'

LEGO wireless protocol v3 hub service UUID.