Expand description
Android Bluetooth API wrapper, currently supporting BLE client role operations.
Version 0.1.x of this crate is supposed to be API-compatible with version 0.6.x of bluest library.
Anything incompatible with bluest in the API may be reported as a bug.
This crate uses ndk_context::AndroidContext, which is automatically initialized by android_activity.
The basic Android test template is provided in the crate page.
Re-exports§
pub use btuuid::BluetoothUuidExt;pub use error::Error;
Modules§
Structs§
- Adapter
- The system’s Bluetooth adapter interface.
- Adapter
Config - Configuration for creating an interface to the default Bluetooth adapter of the system.
- Advertisement
Data - Data included in a Bluetooth advertisement or scan reponse.
- Advertising
Device - Represents a device discovered during a scan operation.
- Characteristic
- A Bluetooth GATT characteristic.
- Characteristic
Properties - GATT characteristic properties as defined in the Bluetooth Core Specification, Vol 3, Part G, §3.3.1.1.
- Descriptor
- A Bluetooth GATT descriptor.
- Device
- A Bluetooth LE device.
- Device
Id - A platform-specific device identifier.
On Android it contains the Bluetooth address in the format
AB:CD:EF:01:23:45. - L2cap
Channel - A Bluetooth LE L2CAP Connection-oriented Channel (CoC).
- L2cap
Channel Reader - Reader half of a L2CAP Connection-oriented Channel (CoC).
- L2cap
Channel Writer - Writer half of a L2CAP Connection-oriented Channel (CoC).
- Manufacturer
Data - Manufacturer specific data included in Bluetooth advertisements.
- Service
- A Bluetooth GATT service.
- Services
Changed - A services changed notification.
- Uuid
- A Universally Unique Identifier (UUID).
Enums§
- Adapter
Event - Events generated by
Adapter::events. - Connection
Event - Events generated by
Adapter::device_connection_events.