Expand description
Device discovery and scanning.
This module provides functionality to scan for Aranet devices using Bluetooth Low Energy.
Scans in one process run one at a time: each scan window takes a process-wide permit and releases it only after the scan has stopped. A window runs on aranet-core’s background runtime and stops as soon as its caller is dropped.
Structs§
- Discovered
Device - Information about a discovered Aranet device.
- Scan
Options - Options for scanning.
Enums§
- Find
Progress - Progress update for device finding operations.
Functions§
- find_
device - Find a device by its address, identifier or full name.
- find_
device_ with_ adapter - Find a specific device using a pre-existing adapter.
- find_
device_ with_ adapter_ progress - Find a specific device using a pre-existing adapter, with progress callback.
- find_
device_ with_ options - Find a specific device by name or address with custom options.
- find_
device_ with_ progress - Find a specific device with progress callback for UI feedback.
- get_
adapter - Get the first available Bluetooth adapter.
- scan_
for_ devices - Scan for Aranet devices in range.
- scan_
with_ adapter - Scan for devices using a specific adapter.
- scan_
with_ options - Scan for devices with custom options.
- scan_
with_ retry - Scan for devices with retry logic for flaky Bluetooth environments.
Type Aliases§
- Progress
Callback - Callback type for progress updates during device finding.