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

how to add notification and indication in Link loss profile

Hello Everyone

i am using LINK LOSS service i would like to send notifcation to the peer device if the connection is lost and also if the connection is made between two devices can anyone suggest me how to do this? for example alert signal charcteristics is used to send alert signal whenver i selert mild alert then the peer device has to to be indicated and notified

Thank you prabhu

  • Hi.

    • You cannot send anything to a device you are not connected to. You can however configure the peer device to do something when a disconnect event is detected. You can do the same for the connected event.
    • These event come in through the event handler of your application. I will assume that you are using the proximity example project. look inside the ble_evt_dispatch in main.c You see that many event handler for different services are called. If you look inside the link loss service event handler, ble_lls_on_ble_evt, you see that it will act on the BLE_GAP_EVT_DISCONNECTED event. It will report a link loss event to the application.
    • You can also handle the BLE_GAP_EVT_CONNECTED in any way you want to.

    -Anders

  • yes am using proximity example link loss service but i want to make the LED turn on and notify if the connection between peer devices are made and turn off LED when the connection is not made can you suggest me what i can do for that

Related