8 #ifndef COMPONENTS_CPP_UTILS_BLEREMOTEDESCRIPTOR_H_
9 #define COMPONENTS_CPP_UTILS_BLEREMOTEDESCRIPTOR_H_
10 #include "sdkconfig.h"
11 #if defined(CONFIG_BT_ENABLED)
14 #include <esp_gattc_api.h>
16 #include "BLERemoteCharacteristic.h"
20 class BLERemoteCharacteristic;
24 class BLERemoteDescriptor {
27 BLERemoteCharacteristic* getRemoteCharacteristic();
29 std::string readValue(
void);
30 uint8_t readUInt8(
void);
31 uint16_t readUInt16(
void);
32 uint32_t readUInt32(
void);
33 std::string toString(
void);
34 void writeValue(uint8_t* data,
size_t length,
bool response =
false);
35 void writeValue(std::string newValue,
bool response =
false);
36 void writeValue(uint8_t newValue,
bool response =
false);
40 friend class BLERemoteCharacteristic;
44 BLERemoteCharacteristic* pRemoteCharacteristic
49 BLERemoteCharacteristic* m_pRemoteCharacteristic;
Definition: FreeRTOS.h:31