Skip to content

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

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".