lpf2.hub_property

Hub-property identifiers (LWP 3.5.2).

Passed to lpf2.hub.getHubPropStr() and used by lpf2.hub_emulation to publish hub metadata.

Attributes

ADVERTISING_NAME

Advertised hub name (UTF-8, up to 14 bytes).

BATTERY_TYPE

Battery type (see lpf2.battery_type).

BATTERY_VOLTAGE

Battery level percentage (0..100).

BUTTON

Power-button state.

FW_VERSION

Firmware version.

HARDWARE_NETWORK_FAMILY

Hardware network family byte.

HW_NETWORK_ID

Hardware network id.

HW_VERSION

Hardware version.

LEGO_WIRELESS_PROTOCOL_VERSION

LWP version reported by the hub.

MANUFACTURER_NAME

Manufacturer name string.

PRIMARY_MAC_ADDRESS

Primary BLE MAC.

RADIO_FIRMWARE_VERSION

Radio firmware version string.

RSSI

BLE RSSI (dBm, signed).

SECONDARY_MAC_ADDRESS

Secondary BLE MAC (for hubs with two radios).

SYSTEM_TYPE_ID

System/hub type id byte.

Module Contents

lpf2.hub_property.ADVERTISING_NAME: int = 1[source]

Advertised hub name (UTF-8, up to 14 bytes).

lpf2.hub_property.BATTERY_TYPE: int = 7[source]

Battery type (see lpf2.battery_type).

lpf2.hub_property.BATTERY_VOLTAGE: int = 6[source]

Battery level percentage (0..100).

lpf2.hub_property.BUTTON: int = 2[source]

Power-button state.

lpf2.hub_property.FW_VERSION: int = 3[source]

Firmware version.

lpf2.hub_property.HARDWARE_NETWORK_FAMILY: int = 15[source]

Hardware network family byte.

lpf2.hub_property.HW_NETWORK_ID: int = 12[source]

Hardware network id.

lpf2.hub_property.HW_VERSION: int = 4[source]

Hardware version.

lpf2.hub_property.LEGO_WIRELESS_PROTOCOL_VERSION: int = 10[source]

LWP version reported by the hub.

lpf2.hub_property.MANUFACTURER_NAME: int = 8[source]

Manufacturer name string.

lpf2.hub_property.PRIMARY_MAC_ADDRESS: int = 13[source]

Primary BLE MAC.

lpf2.hub_property.RADIO_FIRMWARE_VERSION: int = 9[source]

Radio firmware version string.

lpf2.hub_property.RSSI: int = 5[source]

BLE RSSI (dBm, signed).

lpf2.hub_property.SECONDARY_MAC_ADDRESS: int = 14[source]

Secondary BLE MAC (for hubs with two radios).

lpf2.hub_property.SYSTEM_TYPE_ID: int = 11[source]

System/hub type id byte.