[][src]Module btleplug::api

Structs

AdapterManager
BDAddr

Stores the 6 byte address used to identify Bluetooth devices.

CharPropFlags

A set of properties that indicate what operations are supported by a Characteristic.

Characteristic

A Bluetooth characteristic. Characteristics are the main way you will interact with other bluetooth devices. Characteristics are identified by a UUID which may be standardized (like 0x2803, which identifies a characteristic for reading heart rate measurements) but more often are specific to a particular device. The standard set of characteristics can be found here.

PeripheralProperties

The properties of this peripheral, as determined by the advertising reports we've received for it.

ValueNotification

A notification sent from a peripheral due to a change in a value.

Enums

AddressType
CentralEvent
ParseBDAddrError
ParseUUIDError
UUID

A Bluetooth UUID. These can either be 2 bytes or 16 bytes long. UUIDs uniquely identify various objects in the Bluetooth universe.

Traits

Central

Central is the "client" of BLE. It's able to scan for and establish connections to peripherals.

Peripheral

Peripheral is the device that you would like to communicate with (the "server" of BLE). This struct contains both the current state of the device (its properties, characteristics, etc.) as well as functions for communication.

Type Definitions

Callback
CommandCallback
NotificationHandler
RequestCallback