mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 13:10:55 +01:00
Make getDescriptors() work as getCharacteristics()
This commit is contained in:
parent
273490359a
commit
05a5d0dea9
1 changed files with 0 additions and 2 deletions
|
@ -271,9 +271,7 @@ NimBLERemoteDescriptor* NimBLERemoteCharacteristic::getDescriptor(const NimBLEUU
|
||||||
std::vector<NimBLERemoteDescriptor*>* NimBLERemoteCharacteristic::getDescriptors(bool refresh) {
|
std::vector<NimBLERemoteDescriptor*>* NimBLERemoteCharacteristic::getDescriptors(bool refresh) {
|
||||||
if(refresh) {
|
if(refresh) {
|
||||||
deleteDescriptors();
|
deleteDescriptors();
|
||||||
}
|
|
||||||
|
|
||||||
if(m_descriptorVector.empty()) {
|
|
||||||
if (!retrieveDescriptors()) {
|
if (!retrieveDescriptors()) {
|
||||||
NIMBLE_LOGE(LOG_TAG, "Error: Failed to get descriptors");
|
NIMBLE_LOGE(LOG_TAG, "Error: Failed to get descriptors");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue