Expand description
Platform abstraction layer for BLE
This module defines the traits that platform-specific implementations must implement to provide BLE functionality.
§Supported Platforms
- Linux: BlueZ via D-Bus (
bluercrate) - Android: JNI to Android Bluetooth APIs
- macOS/iOS: CoreBluetooth
- Windows: WinRT Bluetooth APIs
- Embedded: ESP-IDF NimBLE
§Architecture
Each platform provides an implementation of BleAdapter that handles:
- Adapter initialization and power management
- Discovery (scanning and advertising)
- GATT server and client operations
- Connection management
Modules§
Structs§
- Discovered
Device - Discovered BLE device
- Stub
Adapter - Stub adapter for testing and platforms without BLE
Enums§
- Connection
Event - Connection event types
- Disconnect
Reason - Reason for disconnection
Traits§
- BleAdapter
- Platform-specific BLE adapter
Type Aliases§
- Connection
Callback - Callback for connection events
- Discovery
Callback - Callback for discovered devices