How to change CONFIG_BT_ACL_CONNECTIONS on bt-common library

Hi, I’m using mongoose bt-common library to build a BLE client device. I succesfully created the app and everything is working but the maximum number of BLE sensors the device can connect is 4, I want to increase that limitation to 7.

I saw in the mos_esp32.yml of the bt-common library that there is a build var called CONFIG_BT_ACL_CONNECTIONS that is set to 4.

build_vars:
  ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} bt"
  ESP_IDF_SDKCONFIG_OPTS: >
    ${build_vars.ESP_IDF_SDKCONFIG_OPTS}
    CONFIG_BT_ENABLED=y
    CONFIG_BLUEDROID_ENABLED=y
    CONFIG_BTC_TASK_STACK_SIZE=6144
    CONFIG_BLUEDROID_MEM_DEBUG=
    CONFIG_CLASSIC_BT_ENABLED=
    CONFIG_BT_DRAM_RELEASE=y
    CONFIG_GATTS_ENABLE=y
    CONFIG_GATTC_ENABLE=y
    CONFIG_BLE_SMP_ENABLE=y
    CONFIG_BT_STACK_NO_LOG=
    CONFIG_BT_ACL_CONNECTIONS=4
    CONFIG_BTDM_CONTROLLER_RUN_CPU=0
    CONFIG_SMP_ENABLE=y
    CONFIG_BT_RESERVE_DRAM=0x10000

I changed it to 8, rebuild everything but when I LOG the CONFIG_BT_ACL_CONNECTIONS that is on the sdkconfig.h file, it shows 2.

Also I noticed that when building, a sdkconfig file (not the .h) is created on the build/gen folder… That file has the CONFIG_BT_ACL_CONNECTIONS set to 4 but there is also a sdkconfig.old file that has the correct CONFIG_BT_ACL_CONNECTIONS value in 8. So I think there’s something in build time that is changing the value to 4.

The question is how to change that value to apply it to my project.

Thanks

Hi!

Would I be able to amazon gift you etc for a copy of your code? There’s little to no document and it’s a bit beyond my c skills.

TIA.