prova

Fork of BLE_API by Bluetooth Low Energy

Embed: (wiki syntax)

« Back to documentation index

GattCharacteristic::PresentationFormat_t Struct Reference

GattCharacteristic::PresentationFormat_t Struct Reference

GATT presentation format wrapper. More...

#include <GattCharacteristic.h>

Data Fields

uint8_t gatt_format
 Format of the value.
int8_t exponent
 Exponent for integer data types.
uint16_t gatt_unit
 UUID from Bluetooth Assigned Numbers.
uint8_t gatt_namespace
 Namespace from Bluetooth Assigned Numbers, normally '1'.
uint16_t gatt_nsdesc
 Namespace description from Bluetooth Assigned Numbers, normally '0'.

Detailed Description

GATT presentation format wrapper.

Note:
See Bluetooth Specification 4.0 (Vol. 3), Part G, Section 3.3.3.5.
See https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml

Definition at line 286 of file GattCharacteristic.h.


Field Documentation

int8_t exponent

Exponent for integer data types.

Example: if Exponent = -3 and the char value is 3892, the actual value is 3.892

Definition at line 288 of file GattCharacteristic.h.

uint8_t gatt_format

Format of the value.

Definition at line 287 of file GattCharacteristic.h.

uint8_t gatt_namespace

Namespace from Bluetooth Assigned Numbers, normally '1'.

Definition at line 290 of file GattCharacteristic.h.

uint16_t gatt_nsdesc

Namespace description from Bluetooth Assigned Numbers, normally '0'.

Definition at line 291 of file GattCharacteristic.h.

uint16_t gatt_unit

UUID from Bluetooth Assigned Numbers.

Definition at line 289 of file GattCharacteristic.h.