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

Multilink central with NUS UART Client

Hello all, I would like to establish connection between single central and two peripherals for bidirectional communication. I edited ble_multilink_central example and created multiple instances NUS Clients of it. My code is getting compiled and I uploaded it to NRF52DK. It is establishing connection with peripheral but getting disconnected after few seconds.

APP:ERROR fatal is thrown after execuing ble_nus_c_rx_notif_enable() in event BLE_NUS_C_EVT_DISCOVERY_COMPLETE.
Handles for assigning multiple instances are created through ble_nus_c_handles_assign() function in event BLE_GAP_EVT_CONNECTED.

Please help me.

Images of code snippets are attached for reference.

Enabling notifications on BLE_NUS_C_EVT_DISCOVERY_COMPLETE event

image description

Assigning handles to multiple instance of NUS Client in BLE_GAP_EVT_CONNECTED

image description

App error fatal

image description

Related