BLE bonding limit

kevinlam
Posts: 7
Joined: Mon Jul 06, 2020 3:24 am

BLE bonding limit

Postby kevinlam » 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

Wangcheng
Posts: 73
Joined: Wed Mar 06, 2019 3:26 am

Re: BLE bonding limit

Postby Wangcheng » Thu Jul 09, 2020 1:31 pm

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.

kevinlam
Posts: 7
Joined: Mon Jul 06, 2020 3:24 am

Re: BLE bonding limit

Postby kevinlam » Fri Jul 10, 2020 2:53 am

thanks Wangcheng!

daniel.beach
Posts: 1
Joined: Mon Apr 03, 2023 12:33 pm

Re: BLE bonding limit

Postby daniel.beach » Mon Apr 03, 2023 12:38 pm

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?

Who is online

Users browsing this forum: Google [Bot] and 174 guests