Page 1 of 1

BLE bonding limit

Posted: Mon Jul 06, 2020 3:41 am
by kevinlam
Hello,

Below thread described 15 bonded devices can be stored in ESP32 and it will delete the oldest bonded device to make room for the new one when the device reaches the limit.

https://esp32.com/viewtopic.php?t=6403

Is there a way to change the max number of bonded devices? Also, can change the rules that ESP32 WILL NOT delete the oldest bonded device but just report "bonded devices full" message during bonding?

Thanks,
Kevin

Re: BLE bonding limit

Posted: Thu Jul 09, 2020 1:31 pm
by Wangcheng
kevinlam wrote:
Mon Jul 06, 2020 3:41 am
Hello,

Below thread described 15 bonded devices can be stored in ESP32 and it will delete the oldest bonded device to make room for the new one when the device reaches the limit.

https://esp32.com/viewtopic.php?t=6403

Is there a way to change the max number of bonded devices? Also, can change the rules that ESP32 WILL NOT delete the oldest bonded device but just report "bonded devices full" message during bonding?

Thanks,
Kevin
For question 1: you can change the size of the macro BTM_SEC_MAX_DEV_RECORDS.

For question 2: Different users may expect different behaviors, you can change the behavior of _btc_storage_save function.

Re: BLE bonding limit

Posted: Fri Jul 10, 2020 2:53 am
by kevinlam
thanks Wangcheng!

Re: BLE bonding limit

Posted: Mon Apr 03, 2023 12:38 pm
by daniel.beach
Has this changed the last 3 years or do you still have to make changes in the idf to be able to deny bonding instead of deleting oldest?