SDK
23.9.2
For IoT System Software Development
|
Descriptor for Client Characteristic Configuration. More...
#include <BLE2902.hpp>
Public Member Functions | |
bool | getNotifications () |
Get the notifications value. More... | |
bool | getIndications () |
Get the indications value. More... | |
void | setNotifications (bool flag) |
Set the notifications flag. More... | |
void | setIndications (bool flag) |
Set the indications flag. More... | |
Public Member Functions inherited from BLEDescriptor | |
BLEDescriptor (const char *uuid, uint16_t max_len=100) | |
BLEDescriptor constructor. | |
BLEDescriptor (BLEUUID uuid, uint16_t max_len=100) | |
BLEDescriptor constructor. | |
virtual | ~BLEDescriptor () |
BLEDescriptor destructor. | |
uint16_t | getHandle () |
Get the BLE handle for this descriptor. More... | |
size_t | getLength () |
Get the length of the value of this descriptor. More... | |
BLEUUID | getUUID () |
Get the UUID of the descriptor. | |
uint8_t * | getValue () |
Get the value of this descriptor. More... | |
void | handleGATTServerEvent (void *info) |
void | setAccessPermissions (ble_gatt_perm_t perm) |
void | setCallbacks (BLEDescriptorCallbacks *pCallbacks) |
Set the callback handlers for this descriptor. More... | |
void | setValue (uint8_t *data, size_t size) |
Set the value of the descriptor. More... | |
void | setValue (std::string value) |
Set the value of the descriptor. More... | |
std::string | toString () |
Return a string representation of the descriptor. More... | |
Descriptor for Client Characteristic Configuration.
This is a convenience descriptor for the Client Characteristic Configuration which has a UUID of 0x2902.
bool BLE2902::getIndications | ( | ) |
Get the indications value.
bool BLE2902::getNotifications | ( | ) |
Get the notifications value.
void BLE2902::setIndications | ( | bool | flag | ) |
Set the indications flag.
[in] | flag | The indications flag. |
void BLE2902::setNotifications | ( | bool | flag | ) |
Set the notifications flag.
[in] | flag | The notifications flag. |