Structs§
- Adapter
- Implementation of api::Central.
- Connected
Peripheral - A connected lighthouse device ready for GATT operations.
- Manager
- Implementation of api::Manager.
- Peripheral
- Implementation of api::Peripheral.
Functions§
- connect_
lighthouse - Connect to a specific lighthouse by its Bluetooth address.
- discover_
lighthouses - Discover nearby lighthouses by scanning BLE advertisements for a given duration. Filters results to only devices whose name starts with “HTC BS” or “LHB-”.
- get_
adapter - Get the first available Bluetooth adapter. Returns an error if none found.
- scan_
until_ predicate - Start a BLE scan, poll until a predicate is satisfied (or timeout), then stop the scan. Returns the final set of discovered peripheral addresses (lowercase).