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
Advertised hub name (UTF-8, up to 14 bytes). |
|
Battery type (see |
|
Battery level percentage (0..100). |
|
Power-button state. |
|
Firmware version. |
|
Hardware network family byte. |
|
Hardware network id. |
|
Hardware version. |
|
LWP version reported by the hub. |
|
Manufacturer name string. |
|
Primary BLE MAC. |
|
Radio firmware version string. |
|
BLE RSSI (dBm, signed). |
|
Secondary BLE MAC (for hubs with two radios). |
|
System/hub type id byte. |
Module Contents
- lpf2.hub_property.BATTERY_TYPE: int = 7[source]
Battery type (see
lpf2.battery_type).
- lpf2.hub_property.LEGO_WIRELESS_PROTOCOL_VERSION: int = 10[source]
LWP version reported by the hub.