<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>how to add notification and indication in Link loss profile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9746/how-to-add-notification-and-indication-in-link-loss-profile</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Oct 2015 10:00:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9746/how-to-add-notification-and-indication-in-link-loss-profile" /><item><title>RE: how to add notification and indication in Link loss profile</title><link>https://devzone.nordicsemi.com/thread/36104?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 10:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10b457c-539c-4f52-b675-df39dffb4283</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;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&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add notification and indication in Link loss profile</title><link>https://devzone.nordicsemi.com/thread/36103?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 09:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4256cc6e-86b1-44e8-8c16-b2da02061a0d</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;These event come in through the event handler of your application. I will assume that you are using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/ble_sdk_app_proximity.html?cp=4_1_0_4_4_14"&gt;proximity example project&lt;/a&gt;. look inside the &lt;code&gt;ble_evt_dispatch&lt;/code&gt; in main.c You see that many event handler for different services are called. If you look inside the link loss service event handler, &lt;code&gt;ble_lls_on_ble_evt&lt;/code&gt;, you see that it will act on the BLE_GAP_EVT_DISCONNECTED event. It will report a link loss event to the application.&lt;/li&gt;
&lt;li&gt;You can also handle the BLE_GAP_EVT_CONNECTED in any way you want to.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;-Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>