bundle.ble.scanner¶
High-level helpers for BLE discovery and presentation.
Attributes¶
Classes¶
Entity describing a scan run and its collected devices. |
|
Collect advertisement snapshots from nearby peripherals. |
Functions¶
|
Module Contents¶
- bundle.ble.scanner.log¶
- bundle.ble.scanner.DEFAULT_SCAN_TIMEOUT = 5.0¶
- class bundle.ble.scanner.ScanResult(/, **data: Any)¶
Bases:
bundle.core.data.DataEntity describing a scan run and its collected devices.
- devices: list[bundle.ble.device.Device] = None¶
- sorted_devices() list[bundle.ble.device.Device]¶
- class bundle.ble.scanner.Scanner(/, **data: Any)¶
Bases:
bundle.core.EntityCollect advertisement snapshots from nearby peripherals.
- async scan(*, timeout: float | None = None) ScanResult¶
- async bundle.ble.scanner.discover(*, timeout: float = DEFAULT_SCAN_TIMEOUT) list[bundle.ble.device.Device]¶