This commit is contained in:
thekurtovic 2025-01-26 15:02:22 -05:00
parent 2e9a7dec2f
commit 013eccdf79
2 changed files with 4 additions and 8 deletions

View file

@ -12,7 +12,6 @@ jobs:
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The version names here correspond to the versions of espressif/idf Docker image.
# See https://hub.docker.com/r/espressif/idf/tags and

View file

@ -103,18 +103,15 @@ bool NimBLERemoteCharacteristic::retrieveDescriptors(const NimBLEUUID* uuidFilte
desc_filter_t filter = {uuidFilter, &taskData};
const uint16_t handle = getHandle();
const uint16_t svcHandle = getRemoteService()->getEndHandle();
const uint16_t cltHandle = getClient()->getConnHandle();
// If this is the last handle then there are no descriptors
// If this is the last handle then there are no more descriptors
if (handle == svcHandle) {
NIMBLE_LOGD(LOG_TAG, "<< retrieveDescriptors(): found 0 descriptors.");
NIMBLE_LOGD(LOG_TAG, "<< retrieveDescriptors(): found %d descriptors.", m_vDescriptors.size());
return true;
}
int rc = ble_gattc_disc_all_dscs(getClient()->getConnHandle(),
handle,
svcHandle,
NimBLERemoteCharacteristic::descriptorDiscCB,
&filter);
int rc = ble_gattc_disc_all_dscs(cltHandle, handle, svcHandle, descriptorDiscCB, &filter);
if (rc != 0) {
NIMBLE_LOGE(LOG_TAG, "ble_gattc_disc_all_dscs: rc=%d %s", rc, NimBLEUtils::returnCodeToString(rc));
return false;