Merge branch 'bugfix/ble_mesh_nimble_ccc_handle_v3.3' into 'release/v3.3'
ble_mesh: nimble: Fix updating ccc handle with wrong value (v3.3) See merge request espressif/esp-idf!10357
This commit is contained in:
commit
fa24dd7f6d
1 changed files with 6 additions and 2 deletions
|
@ -207,7 +207,10 @@ static int dsc_disced(uint16_t conn_handle, const struct ble_gatt_error *error,
|
||||||
|
|
||||||
switch (error->status) {
|
switch (error->status) {
|
||||||
case 0:
|
case 0:
|
||||||
|
if (bt_mesh_gattc_info[i].ccc_handle == 0 && dsc &&
|
||||||
|
BLE_UUID16(&dsc->uuid)->value == BLE_MESH_UUID_GATT_CCC_VAL) {
|
||||||
bt_mesh_gattc_info[i].ccc_handle = dsc->handle;
|
bt_mesh_gattc_info[i].ccc_handle = dsc->handle;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BLE_HS_EDONE:
|
case BLE_HS_EDONE:
|
||||||
|
@ -291,7 +294,8 @@ static int chr_disced(uint16_t conn_handle, const struct ble_gatt_error *error,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ble_gattc_disc_all_dscs(conn_handle, bt_mesh_gattc_info[j].data_out_handle, 0xffff, dsc_disced, (void *)j);
|
ble_gattc_disc_all_dscs(conn_handle, bt_mesh_gattc_info[j].data_out_handle, bt_mesh_gattc_info[j].end_handle,
|
||||||
|
dsc_disced, (void *)j);
|
||||||
} else {
|
} else {
|
||||||
ble_gattc_disc_all_chrs(conn_handle, bt_mesh_gattc_info[j].start_handle, bt_mesh_gattc_info[j].end_handle,
|
ble_gattc_disc_all_chrs(conn_handle, bt_mesh_gattc_info[j].start_handle, bt_mesh_gattc_info[j].end_handle,
|
||||||
chr_disced, (void *)j);
|
chr_disced, (void *)j);
|
||||||
|
|
Loading…
Reference in a new issue