mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-25 06:30:55 +01:00
Check characteristic handles before fetching descriptors.
This commit is contained in:
parent
f414a5ac73
commit
0f4326d3fd
1 changed files with 4 additions and 0 deletions
|
@ -266,6 +266,10 @@ bool NimBLERemoteCharacteristic::retrieveDescriptors(const NimBLEUUID *uuid_filt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_handle == m_endHandle) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
desc_filter_t filter = {uuid_filter, &taskData};
|
desc_filter_t filter = {uuid_filter, &taskData};
|
||||||
|
|
||||||
rc = ble_gattc_disc_all_dscs(getRemoteService()->getClient()->getConnId(),
|
rc = ble_gattc_disc_all_dscs(getRemoteService()->getClient()->getConnId(),
|
||||||
|
|
Loading…
Reference in a new issue