Skip to content

struct ble_uuid128_t

Structure to convey information about UUIDs in BLE. More...

#include <ble/ble_gatt.h>

Public Attributes

Name
uint8_t[4]data1
last 4 bytes of the UUID in reversed byte order
uint8_t[2]data2
11th and 12th byte of the UUID in reversed byte order
uint8_t[2]data3
9th and 10th byte of the UUID in reversed byte order
uint8_t[8]data4
first 8 bytes of the UUID in reversed byte order

Detailed Description

cpp
struct ble_uuid128_t;

Structure to convey information about UUIDs in BLE.

By definition BLE UUIDs are always 'reversed'. For example the following UUID { 77880001-d229-11e4-8689-0004a5d5c51b } would be represented in ble_uuid128_t format as follows:

cpp
ble_uuid128_t my_uuid = {
   .data1 = {0x1b, 0xc5, 0xd5, 0xa5},
   .data2 = {0x04, 0x00},
   .data3 = {0x89, 0x86},
   .data4 = {0xe4, 0x11, 0x29, 0xd2, 0x01, 0x00, 0x88, 0x77}
 }

Public Attributes Documentation

variable data1

cpp
uint8_t ble_uuid128_t::data1[4]

last 4 bytes of the UUID in reversed byte order

variable data2

cpp
uint8_t ble_uuid128_t::data2[2]

11th and 12th byte of the UUID in reversed byte order

variable data3

cpp
uint8_t ble_uuid128_t::data3[2]

9th and 10th byte of the UUID in reversed byte order

variable data4

cpp
uint8_t ble_uuid128_t::data4[8]

first 8 bytes of the UUID in reversed byte order