8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f4b0f commit 0aafa05Copy full SHA for 0aafa05
libraries/BLE/src/BLECharacteristic.cpp
@@ -187,6 +187,13 @@ uint8_t* BLECharacteristic::getData() {
187
return m_value.getData();
188
} // getData
189
190
+/**
191
+ * @brief Retrieve the current length of the data of the characteristic.
192
+ * @return Amount of databytes of the characteristic.
193
+ */
194
+uint8_t BLECharacteristic::getLength() {
195
+ return m_value.getLength();
196
+} // getLength
197
198
/**
199
* Handle a GATT server event.
libraries/BLE/src/BLECharacteristic.h
@@ -62,6 +62,7 @@ class BLECharacteristic {
62
BLEUUID getUUID();
63
std::string getValue();
64
uint8_t* getData();
65
+ uint8_t getLength();
66
67
void indicate();
68
void notify(bool is_notification = true);
0 commit comments