Skip to main content

Module bluetooth

Module bluetooth 

Source

Structs§

Adapter
Implementation of api::Central.
ConnectedPeripheral
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).