Check characteristic handles before fetching descriptors.

This commit is contained in:
h2zero committed 2022-02-20 10:02:09 -07:00
1 parent f414a5ac73
commit 0f4326d3fd
1 file changed
+4
+4
View File
@@ -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};
rc = ble_gattc_disc_all_dscs(getRemoteService()->getClient()->getConnId(),