File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,15 @@ uint8_t* NimBLECharacteristic::getData() {
198
198
} // getData
199
199
200
200
201
+ /* *
202
+ * @brief Retrieve the the current data length of the characteristic.
203
+ * @return The length of the current characteristic data.
204
+ */
205
+ size_t NimBLECharacteristic:: getDataLength() {
206
+ return m_value.getLength ();
207
+ }
208
+
209
+
201
210
int NimBLECharacteristic::handleGapEvent (uint16_t conn_handle, uint16_t attr_handle,
202
211
struct ble_gatt_access_ctxt *ctxt,
203
212
void *arg)
@@ -637,4 +646,4 @@ void NimBLECharacteristicCallbacks::onStatus(NimBLECharacteristic* pCharacterist
637
646
NIMBLE_LOGD (" NimBLECharacteristicCallbacks" , " onStatus: default" );
638
647
} // onStatus
639
648
640
- #endif /* CONFIG_BT_ENABLED */
649
+ #endif /* CONFIG_BT_ENABLED */
You can’t perform that action at this time.
0 commit comments