Hello,
I have read numerous posts about NRF_ERROR_CONN_COUNT but yet able to solve this solve, my setup is NRF52840 Dongle as central and I want to connect to multiple Heart rate sensors peripheral.
Using nRF Connect BLE app, I was able to connect 2+ peripherals but using nrf-pc-ble-driver I could not initialize the ble stack without an error.
nRF Connect BLE app:
Will automatically program connectivity software for me, its output:
nrf-pc-ble-driver,
I use heart_rate_collector_v3, it is the only version that worked for me, all other api version (v2, v5, v6) did not work out of the box.
I modify the following code
#define MAX_PEER_COUNT 2 /**< Maximum number of peer's application intends to manage. */
#if NRF_SD_BLE_API <= 3
ble_enable_params.gap_enable_params.periph_conn_count = 2;
ble_enable_params.gap_enable_params.central_conn_count = 2;
ble_enable_params.gap_enable_params.central_sec_count = 2;
err_code = sd_ble_enable(m_adapter, &ble_enable_params, app_ram_base);
#else
err_code = sd_ble_enable(m_adapter, app_ram_base);
#endif
And the error came from
err_code = sd_ble_enable(m_adapter, &ble_enable_params, app_ram_base);