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

Problem triggering BLE_NUS_EVT_COMM_STOPPED

Hi,

I'm doing a project of a bluetooth sensor, using pca10040 with softdevice v5.1.0 s132 that sends data to one or more android applications simultaneously, in this project the sensor works as peripheral and the applications as central.

There is a problem in the project when I stop receiving data from an application, the BLE_NUSS_EVT_COMM_STOPPED event fires, causing it to stop sending the data to the other applications.

This event happened on file ble_nus.c line 103:

 

Shouldn´t this event be specific to each conn_handle? Why does this event influence other communications? How can i fix it? 

Related