Skip to content

Commit 213ad0d

Browse files
committed
Allow changing max connections by only changing nimconfig setting.
This allows the max connections to be altered by only changing the CONFIG_BT_NIMBLE_MAX_CONNECTIONS value in nimconfig.h. Changes in sdkconfig.h are no longer required to use this.
1 parent 54c5c31 commit 213ad0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/esp-hci/src/esp_nimble_hci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ esp_err_t esp_nimble_hci_and_controller_init(void)
470470
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
471471

472472
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
473+
bt_cfg.ble_max_conn = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
473474

474475
if ((ret = esp_bt_controller_init(&bt_cfg)) != ESP_OK) {
475476
return ret;

0 commit comments

Comments
 (0)