Resync to arduino master

This commit is contained in:
h2zero
2020-04-23 15:17:09 -06:00
parent 6c0e6a2b2c
commit 725807b619
4 changed files with 33 additions and 6 deletions
+10 -1
View File
@@ -198,6 +198,15 @@ uint8_t* NimBLECharacteristic::getData() {
} // getData
/**
* @brief Retrieve the the current data length of the characteristic.
* @return The length of the current characteristic data.
*/
size_t NimBLECharacteristic:: getDataLength() {
return m_value.getLength();
}
int NimBLECharacteristic::handleGapEvent(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt,
void *arg)
@@ -637,4 +646,4 @@ void NimBLECharacteristicCallbacks::onStatus(NimBLECharacteristic* pCharacterist
NIMBLE_LOGD("NimBLECharacteristicCallbacks", "onStatus: default");
} // onStatus
#endif /* CONFIG_BT_ENABLED */
#endif /* CONFIG_BT_ENABLED */