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

Multilink example code

Hi  i am using SDK15.2, nrf52832 board.

Which function is necessary to achieve multilink in example code. I dont understand how the central is connecting multiple peripherals at the same?

Please provide me some more details because i have the similar requirement to connect multiple peripherals at the same time.

Thanks,

Rekha

Parents Reply
  • continue to scan even if you are connected to a device. 

    Please look at how this is done in ble_app_multilink_central in ble_evt_handler -> BLE_GAP_EVT_CONNECTED.

    if (ble_conn_state_central_conn_count() == NRF_SDH_BLE_CENTRAL_LINK_COUNT) // Connected to all devices
    {
        bsp_board_led_off(CENTRAL_SCANNING_LED);    // all devices connected. Don't scan
    }
    else    //Not all devices connected. Restart scanning.
    {
        bsp_board_led_on(CENTRAL_SCANNING_LED);
        scan_start(); //<-- Here. Start scan
    }

Children
Related