A model of remote BLE descriptor.
More...
#include <BLERemoteDescriptor.hpp>
|
uint16_t | getHandle () |
| Retrieve the handle associated with this remote descriptor. More...
|
|
BLERemoteCharacteristic * | getRemoteCharacteristic () |
| Get the characteristic that owns this descriptor. More...
|
|
BLEUUID | getUUID () |
| Retrieve the UUID associated this remote descriptor. More...
|
|
std::string | readValue (void) |
|
uint8_t | readUInt8 (void) |
|
uint16_t | readUInt16 (void) |
|
uint32_t | readUInt32 (void) |
|
std::string | toString (void) |
| Return a string representation of this BLE Remote Descriptor. @retun A string representation of this BLE Remote Descriptor.
|
|
void | writeValue (uint8_t *data, size_t length, bool response=false) |
|
void | writeValue (std::string newValue, bool response=false) |
| Write data represented as a string to the BLE Remote Descriptor. More...
|
|
void | writeValue (uint8_t newValue, bool response=false) |
| Write a byte value to the Descriptor. More...
|
|
A model of remote BLE descriptor.
◆ getHandle()
uint16_t BLERemoteDescriptor::getHandle |
( |
| ) |
|
Retrieve the handle associated with this remote descriptor.
- Returns
- The handle associated with this remote descriptor.
◆ getRemoteCharacteristic()
Get the characteristic that owns this descriptor.
- Returns
- The characteristic that owns this descriptor.
57 return m_pRemoteCharacteristic;
◆ getUUID()
BLEUUID BLERemoteDescriptor::getUUID |
( |
| ) |
|
Retrieve the UUID associated this remote descriptor.
- Returns
- The UUID associated this remote descriptor.
◆ writeValue() [1/2]
void BLERemoteDescriptor::writeValue |
( |
std::string |
newValue, |
|
|
bool |
response = false |
|
) |
| |
Write data represented as a string to the BLE Remote Descriptor.
- Parameters
-
[in] | newValue | The data to send to the remote descriptor. |
[in] | response | True if we expect a response. |
114 writeValue((uint8_t*) newValue.data(), newValue.length(), response);
◆ writeValue() [2/2]
void BLERemoteDescriptor::writeValue |
( |
uint8_t |
newValue, |
|
|
bool |
response = false |
|
) |
| |
Write a byte value to the Descriptor.
- Parameters
-
[in] | The | single byte to write. |
[in] | True | if we expect a response. |
124 writeValue(&newValue, 1, response);
The documentation for this class was generated from the following files: