blatann.waitables.scan_waitable module
- class blatann.waitables.scan_waitable.ScanFinishedWaitable(ble_device)
Bases:
WaitableWaitable that triggers when a scan operation completes. It also provides a mechanism to acquire the received scan reports in real-time
- property scan_reports: Iterable[ScanReport]
Iterable which yields the scan reports in real-time as they’re received. The iterable will block until scanning has timed out/finished
- property scan_reports_async: Iterable[ScanReport]
Async iterable which yields the scan reports in real-time as they’re received. The iterable will block until scanning has timed out/finished.
Warning
This method is experimental!
- wait(timeout=None, exception_on_timeout=True)
Waits for the scanning operation to complete then returns the scan report collection
- Parameters:
- Return type:
- Returns:
The scan report collection