<?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>Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1750/setting-linkloss-alertlevel-on-device-through-android-application</link><description>Hi, 
 I am working on proximity android application, i implemented immediate alert service, which is working fine. Now i need to set the alert level on the tag for linkloss as same as in the iphone application. how can i do this. what is happening when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Mar 2014 14:20:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1750/setting-linkloss-alertlevel-on-device-through-android-application" /><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7661?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2014 14:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d93ec59-6d29-489a-bb05-284441ef54dc</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;If you found Balaji&amp;#39;s reply useful, I&amp;#39;d be happy if you could accept it as an answer for this question, to clear it up. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7658?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 13:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bfde37a-aced-4bbb-9fb5-17e3ae9460ca</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;yes it is clear, i tested this in debug mode both iphone and my android applications are writing alert values when i set. But linkloss alert works only, when i set value through ios application. I need to check my android application. Thank u.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7660?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 12:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51070c4-4048-4278-b3f6-748e1370b90b</guid><dc:creator>Balaji Srinivasan</dc:creator><description>&lt;p&gt;Not sure if I understand you correctly. But the alert level value is sent by the phone using GATT Write Request. This will be received received, stored and responded to by the BLE Stack running on the device. The value thus stored is read using the API sd_ble_gatts_value_get by the application on the device side (as you have mentioned). Is this clear?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7659?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 12:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:536aaa52-e945-4ded-9b0c-9bb6a97f4d78</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;thanks balaji,
what about the device side.
i can see
sd_ble_gatts_value_get(p_lls-&amp;gt;alert_level_handles.value_handle, 0, &amp;amp;len, p_alert_level);
which is called when the linkloss disconnection happens.
But how the alert level value is received and settled  in stack when we write through alertlevel characteristics?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7657?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 12:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe6f278-272a-4858-9373-53937b55378f</guid><dc:creator>Balaji Srinivasan</dc:creator><description>&lt;p&gt;The app will be writing 0x02&amp;#39; (High Alert) or 0x01 (Mild Alert) or 0x00 (No Alert) to the Alert Level characteristic in the Link Loss service as mentioned here -&amp;gt; &lt;a target="_blank" href="https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.alert_level.xml" rel="nofollow"&gt;https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.alert_level.xml&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7656?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 12:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e55317b2-71c7-46ed-bc23-eea4a632a45c</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;Thank for the reply balaji,
What is happening in the iphone proximity application, when we set the on tag alert levels?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting linkloss alertlevel on device through android application</title><link>https://devzone.nordicsemi.com/thread/7655?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2014 12:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf6d3d93-5a94-4819-9950-610e3bfcb3fe</guid><dc:creator>Balaji Srinivasan</dc:creator><description>&lt;p&gt;Hi Balaji,&lt;/p&gt;
&lt;p&gt;For Link Loss alerts, your Android application will need to discover &amp;#39;&lt;a href="https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.link_loss.xml"&gt;Link Loss Service&lt;/a&gt;&amp;#39; on the tag and write to the &amp;#39;Alert Level&amp;#39; characteristic which is included in it.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Cheers,
Balaji&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>