pb_client.service.Service.scan
async
¶
scan(*, seconds=10.0, name=None, transport=None)
Look for hubs that are advertising.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
seconds
|
float | None
|
How long the service should look, or |
10.0
|
name
|
str | None
|
Only report hubs with this name. |
None
|
transport
|
str | None
|
Only look on this transport, such as |
None
|
Returns:
| Type | Description |
|---|---|
list[DeviceInfo]
|
The hubs seen. |