This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Adding phone connections 1 at a time

nrf52840, s140 SDK15.0

Scenario: 

1. I connect the phone to the development board.

2. I save off the adv_handle

3, I then send a command to increase the number of phones that are allowed to connect.

4.  I try to restart the  advertising using    ret_code_t err_code = sd_ble_gap_adv_start(adv_handle, APP_BLE_CONN_CFG_TAG);
    APP_ERROR_CHECK(err_code);

I keep getting the errror x3004.

At the first connection I do NOT restart advertising:

                if (ble_conn_state_peripheral_conn_count () < (max_phone_connections ()))
                {
                    NRF_LOG_INFO("RESTART_ADVERTISING");
                    adv_scan_start ();
                }

Any idea as to how I can stop this error

Parents Reply Children
No Data
Related