Skip to main content

Crate bluetooth

Crate bluetooth 

Source
Expand description

Platform-independent Bluetooth Low Energy host service.

Re-exports§

pub use bt_hci as hci;

Structs§

Address
AdvertisingData
AttributeRequest
AttributeValue
BluetoothDevice
The upper half of the Bluetooth device. Start its runner on a local task before opening the device. Each successful opening owns the controller until its work has been cancelled and its connection released.
CONNECT
Capabilities
Characteristic
ConnectionHandle
ConnectionRequest
DISCONNECT
DISCOVER_CHARACTERISTICS
DISCOVER_DESCRIPTORS
DISCOVER_SERVICES
Descriptor
Event
GET_CAPABILITIES
GET_STATE
NotificationRequest
READ_ATTRIBUTE
SET_NOTIFICATIONS
START_ADVERTISING
START_SCAN
STOP_ADVERTISING
STOP_SCAN
ScanConfiguration
ScanResult
Service
State
Uuid
WRITE_ATTRIBUTE
WriteRequest

Constants§

DEVICE_PATH
VALUE_CAPACITY

Traits§

Controller
Controller requirements for the platform that starts the host runner. Use the typed commands and transport in [crate::hci] to implement them.

Functions§

mount
Mount a controller node owned by the mounting task’s user. The runtime must create /devices before calling this function.