18#ifndef NIMBLE_CPP_DESCRIPTOR_H_
19#define NIMBLE_CPP_DESCRIPTOR_H_
22#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
24# include "NimBLELocalValueAttribute.h"
53 void writeEvent(
const uint8_t* val, uint16_t len,
NimBLEConnInfo& connInfo)
override;
73# include "NimBLE2904.h"
The model of a BLE Characteristic.
Definition NimBLECharacteristic.h:40
Connection information.
Definition NimBLEConnInfo.h:32
Callbacks that can be associated with a BLE descriptors to inform of events.
Definition NimBLEDescriptor.h:66
virtual void onRead(NimBLEDescriptor *pDescriptor, NimBLEConnInfo &connInfo)
Callback function to support a read request.
Definition NimBLEDescriptor.cpp:138
virtual void onWrite(NimBLEDescriptor *pDescriptor, NimBLEConnInfo &connInfo)
Callback function to support a write request.
Definition NimBLEDescriptor.cpp:147
A model of a BLE descriptor.
Definition NimBLEDescriptor.h:33
std::string toString() const
Return a string representation of the descriptor.
Definition NimBLEDescriptor.cpp:117
NimBLECharacteristic * getCharacteristic() const
Get the characteristic this descriptor belongs to.
Definition NimBLEDescriptor.cpp:89
void setCallbacks(NimBLEDescriptorCallbacks *pCallbacks)
Set the callback handlers for this descriptor.
Definition NimBLEDescriptor.cpp:97
The model of a BLE service.
Definition NimBLEService.h:34
A model of a BLE UUID.
Definition NimBLEUUID.h:41