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
  • Hello,

    There is no single function that is used for this, but I suggest you check out the ble_app_multilink_central example found in:

    SDK15.2.0\examples\ble_central\ble_app_multilink_central.

    A few keywords that you should check out are:

    NRF_SDH_BLE_CENTRAL_LINK_COUNT

    BLE_DB_DISCOVERY_ARRAY_DEF (compared to BLE_DB_DISCOVERY_DEF in the non-multilink examples). 

    Also note that you have the BLE_LBS_C_ARRAY_DEF. This will apply to any services that you use. You need to use an array instance instead of a single instance, to keep track of all the devices you are connected to.

    Best regards,

    Edvin

Reply
  • Hello,

    There is no single function that is used for this, but I suggest you check out the ble_app_multilink_central example found in:

    SDK15.2.0\examples\ble_central\ble_app_multilink_central.

    A few keywords that you should check out are:

    NRF_SDH_BLE_CENTRAL_LINK_COUNT

    BLE_DB_DISCOVERY_ARRAY_DEF (compared to BLE_DB_DISCOVERY_DEF in the non-multilink examples). 

    Also note that you have the BLE_LBS_C_ARRAY_DEF. This will apply to any services that you use. You need to use an array instance instead of a single instance, to keep track of all the devices you are connected to.

    Best regards,

    Edvin

Children
Related