NimBLE-Arduino 2.1.2
|
Descriptor for Characteristic Presentation Format. More...
#include <NimBLE2904.h>
Inherits NimBLEDescriptor.
Public Member Functions | |
void | setDescription (uint16_t) |
Set the description. | |
void | setExponent (int8_t exponent) |
Set the exponent. | |
void | setFormat (uint8_t format) |
Set the format. | |
void | setNamespace (uint8_t namespace_value) |
Set the namespace. | |
void | setUnit (uint16_t unit) |
Set the units for this value. | |
Public Member Functions inherited from NimBLEDescriptor | |
NimBLEDescriptor (const char *uuid, uint16_t properties, uint16_t maxLen, NimBLECharacteristic *pCharacteristic=nullptr) | |
Construct a descriptor. | |
NimBLEDescriptor (const NimBLEUUID &uuid, uint16_t properties, uint16_t maxLen, NimBLECharacteristic *pCharacteristic=nullptr) | |
Construct a descriptor. | |
std::string | toString () const |
Return a string representation of the descriptor. | |
void | setCallbacks (NimBLEDescriptorCallbacks *pCallbacks) |
Set the callback handlers for this descriptor. | |
NimBLECharacteristic * | getCharacteristic () const |
Get the characteristic this descriptor belongs to. | |
Descriptor for Characteristic Presentation Format.
This is a convenience descriptor for the Characteristic Presentation Format which has a UUID of 0x2904.
void NimBLE2904::setDescription | ( | uint16_t | description | ) |
Set the description.
[in] | description | The description value to set. |
void NimBLE2904::setExponent | ( | int8_t | exponent | ) |
Set the exponent.
[in] | exponent | The exponent value to set. |
void NimBLE2904::setFormat | ( | uint8_t | format | ) |
Set the format.
[in] | format | The format value to set. |
void NimBLE2904::setNamespace | ( | uint8_t | namespace_value | ) |
Set the namespace.
[in] | namespace_value | The namespace value toset. |
void NimBLE2904::setUnit | ( | uint16_t | unit | ) |
Set the units for this value.
[in] | unit | The type of units of this characteristic as defined by assigned numbers. |
See https://www.bluetooth.com/specifications/assigned-numbers/units