pb_client.models.HubInfo
dataclass
¶
HubInfo(
id,
name,
state,
hub_type,
firmware,
protocol,
address,
transport,
num_slots,
max_program_size,
subscribers,
program_running,
status_names,
running_program_id=None,
)
A connected hub.
Methods¶
from_wire-- Build from a hub description.
Attributes¶
hub_type-- What kind of hub it is, such as "Technic hub", if it is a known one.legacy_main_module-- Whether this hub needs the program's entry module called__main__.running_program_id-- Which program is running, where the hub says.transport-- How the hub is reached, such as"ble"or"usb".