<?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>Indication- Server(Mobile Device) and Client(nRF51)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9290/indication--server-mobile-device-and-client-nrf51</link><description>My Project: 
 I want to control 2 outputs on the nRF51DK from my mobile device(Android &amp;amp; iOS). Its a simple program: 
 left button is pressed -&amp;gt; PIN 21 High / left button is released -&amp;gt; PIN 21 Low 
 right button is pressed -&amp;gt; PIN 22 High / right button</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2015 11:19:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9290/indication--server-mobile-device-and-client-nrf51" /><item><title>RE: Indication- Server(Mobile Device) and Client(nRF51)</title><link>https://devzone.nordicsemi.com/thread/34274?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2015 11:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86f7d67-a518-4ea9-8254-ed3d699616cb</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;Because I need the same solution for iOS. But I will try it on the Android Application. Thank you for the information with the reliable write.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Indication- Server(Mobile Device) and Client(nRF51)</title><link>https://devzone.nordicsemi.com/thread/34273?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 12:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6671851c-428c-4248-994f-bf0e99704438</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I think it&amp;#39;s a good solution. Just a workaround when Android doesn&amp;#39;t have the call back for indication has been confirmed. I am not sure what&amp;#39;s the case on iOS though.&lt;/p&gt;
&lt;p&gt;But why do you want to have the server on the phone ? Why not having the server on the nRF51, then you can do a reliable write from the phone, which have more control over what is received on the nRF51. Have a look &lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#beginReliableWrite()"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Indication- Server(Mobile Device) and Client(nRF51)</title><link>https://devzone.nordicsemi.com/thread/34272?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 07:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d26cbaf2-c4e5-49f7-988c-28b167e133b9</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;Hmm there is no call back when indication is confirmed? So I have a other solution in my mind. I could set up 2 characteristics. One for the data, which will give me information which button is pressed and is the button pressed or not. And the other characteristic would be like an ACK. Everytime I get a notification from the app, I would send on the other characteristic a notification, that the data is recieved.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m controling a motor with the app. I have a characteristic for moving up and one for moving down. up_write_handler is the function, which will be called when I get a notification from the mobile device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Indication- Server(Mobile Device) and Client(nRF51)</title><link>https://devzone.nordicsemi.com/thread/34271?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2015 12:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cdf0d0d-34ad-4f8d-afbc-b3224c82e257</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Inspectron,&lt;/p&gt;
&lt;p&gt;On the nRF51 side, the difference when it&amp;#39;s receiving notification or indication are small. The stack handle the ACKing for the application. So on the application it&amp;#39;s almost the same, you receive BLE_GATTC_EVT_HVX. Only the type in ble_gattc_evt_hvx_t are different when you receive the event.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you will receive any call back on the app on the phone when the indication is confirmed (unlike on nRF51 side). But there is a call back when the notification/indication is sent (onNotificationSent ) have you used it ?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t quite understand &amp;quot;up_write_handler&amp;quot;, what do you plan to do with that  ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>