Ways to remove ble bonding Info

Posts: 1
Joined: Mon May 21, 2018 7:51 am

Ways to remove ble bonding Info

Postby chapman » Mon May 21, 2018 8:04 am

I want to know is there any ways to remove the ble bonding info on GATT client.

By using the GATT security client example, a esp32 GATT client can successfully bond to a ble GATT server device.
However, once the GATT server device is 's bonding information is removed by some means (e.g. factory reset), the esp gatt client cannot bond again this device even the following api is called:

esp_ble_set_encryption(param->open.remote_bda, ESP_BLE_SEC_ENCRYPT);
No pairing response can be obtained later.

Maybe the old bonding information for that device in the esp32 gatt client is still keeping at some where, so that the device cannot be bonded.

So my question is : how can we remove the ble bonding information in ESP GATT client?
or is there any way to initiate the bonding even old bonding info is existed?

Thank you

Posts: 191
Joined: Thu Dec 08, 2016 2:53 pm

Re: Ways to remove ble bonding Info

Postby f.h-f.s. » Mon Jun 04, 2018 7:59 am

This info is stored in the nvs flash

try bta_gattc_co_cache_reset() https://github.com/espressif/esp-idf/search?utf8=%E2%9C%93&q=bta_gattc_co_cache_reset&type=

Who is online

Users browsing this forum: No registered users and 1 guest