espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.35k stars 7.21k forks source link

How to increase BLE connection Length when using ESP-WrOOM-32 (IDFGH-13616) #14501

Open Ajay-rathor opened 1 week ago

Ajay-rathor commented 1 week ago

Is your feature request related to a problem?

I am using ESP-WROOM-32 and ESP-IDF. I have created project using this example: examples/bluetooth/bluedroid/ble/ble_hid_device_demo

this example is working fine, but it can connect with only one BLE connection at the time.

Describe the solution you'd like.

I want to increase BLE connection capacity in this example. So it can connect with multiple BLE at same time.

Describe alternatives you've considered.

I have gone through many ways, checked and modified sdk_config.cmake file , menu-config and the go through program also.

Additional context.

No response

esp-zhp commented 1 week ago

The ESP32 supports multiple connections, with a maximum of 9 simultaneous connections. To achieve this, both BT_ACL_CONNECTIONS and BTDM_CTRL_BLE_MAX_CONN need to be configured accordingly:

Set BT_ACL_CONNECTIONS to 9 Set BTDM_CTRL_BLE_MAX_CONN to 9