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

MULTILINK CENTRAL WITH NUS SERVICE

HI..i am trying to implement multilink central with nus service..but it is getting error at lbs_c_init();.what is the reason..can anyone help..i also changed the central link count..still no change

Parents Reply
  • First you would need to know which connection handle to use. When you merge multilink central with ble_app_nus_c example then you would have to define a NUS instance for each link. You should therefore use BLE_NUS_C_ARRAY_DEF instead of BLE_NUS_C_DEF. Each NUS instance is assigned to a specific link/connection handle. This should be done in a CONNECTION event. You would then have to pass that specific NUS instance to ble_nus_c_string_send() when you want to send to a specific peripheral. 

    Merging ble_app_uart_c and multilink has already been done by one of our engineers. You can find the project here. Note that the project is apart of the playground repository, which means that it's not supported.

    best regards

    Jared

Children
Related