Expand description
§bluetooth-numbers
The Bluetooth SIG’s Assigned Numbers, as lookup functions.
cargo add bluetooth-numbersEvery table is generated at build time from the YAML the SIG publishes in its public repository (https://bitbucket.org/bluetooth-SIG/public), so the names here are the SIG’s own and a new assignment arrives with an update of that repository, never by editing this crate.
assert_eq!(bluetooth_numbers::company(0x004c), Some("Apple, Inc."));
assert_eq!(bluetooth_numbers::service(0x180f).map(|s| s.name), Some("Battery"));Part of bluetooth-bridge, maintained by Pulzar. See the user guide, the library guide and the API documentation.
License: MIT.
Structs§
- Appearance
- An Appearance value, split into its category and subcategory.
- Uuid16
- A 16-bit UUID’s assignment.
Enums§
- Uuid
Kind - The kinds of 16-bit UUID the SIG assigns.
Functions§
- ad_type
- The name of an advertising data (AD) type.
- appearance
- Splits and names an Appearance value.
- characteristic
- A GATT characteristic.
- company
- The company a Company Identifier is assigned to (manufacturer specific data, LMP).
- core_
version - A Bluetooth Core Specification version, as reported in HCI and LMP version fields.
- descriptor
- A GATT descriptor.
- format_
type - A Characteristic Presentation Format type: its short name and description.
- member
- A UUID assigned to a member company, such as
0xFEAA(Google, Eddystone). - mesh_
model - The name of a SIG Mesh model.
- mesh_
opcode - The name of a Mesh message opcode (1, 2 or 3 octets, as a number:
0x8201is Generic OnOff Get). - psm
- The protocol or profile assigned an L2CAP PSM.
- service
- A GATT service.
- unit
- A unit (Characteristic Presentation Format).
- uri_
scheme - The scheme of the URI AD type’s code point, such as
"https:". - uuid16
- A 16-bit UUID of any kind; services first, then characteristics and so on
(see
UuidKind::ALL). The SIG’s ranges do not overlap in practice. - uuid16_
of - A 16-bit UUID of one kind.