<?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>What is the API call to send data from the nRF51822 device to the iOS/Android master?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1830/what-is-the-api-call-to-send-data-from-the-nrf51822-device-to-the-ios-android-master</link><description>Hi all, 
 When I receive data from the phone app, I do it via this service handler (and it works): 
 err_code = ble_services_init(&amp;amp;my_device_service, ble_receive_handler);
APP_ERROR_CHECK(err_code);
 
 Now I would like to set something up to send</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Mar 2014 03:37:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1830/what-is-the-api-call-to-send-data-from-the-nrf51822-device-to-the-ios-android-master" /><item><title>RE: What is the API call to send data from the nRF51822 device to the iOS/Android master?</title><link>https://devzone.nordicsemi.com/thread/7925?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2014 03:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c74a5f9-f5c6-439e-baff-952ad4a78cbf</guid><dc:creator>Gil dePaula</dc:creator><description>&lt;p&gt;OK.  Thanks again Ole.  I will do that.
Cheers,
Gil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the API call to send data from the nRF51822 device to the iOS/Android master?</title><link>https://devzone.nordicsemi.com/thread/7924?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2014 10:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df2192d9-bd71-4675-9d4d-02c29a7a3ec1</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;It has been tested with final 6.0.0, which isn&amp;#39;t any of the ones you suggest. There is currently no reason to be using neither the alpha nor beta, and I&amp;#39;d recommend you to upgrade to 6.0.0 final: &lt;a target="_blank" href="https://www.nordicsemi.com/eng/content/download/39091/660683/file/s110_nrf51822_6.0.0.zip" rel="nofollow"&gt;https://www.nordicsemi.com/eng/content/download/39091/660683/file/s110_nrf51822_6.0.0.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As for the iOS app, none of our apps work directly with this application, but you can use for example LightBlue, and manually enable notifications: &lt;a target="_blank" href="https://itunes.apple.com/us/app/lightblue-bluetooth-low-energy/id557428110?mt=8" rel="nofollow"&gt;https://itunes.apple.com/us/app/lightblue-bluetooth-low-energy/id557428110?mt=8&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the API call to send data from the nRF51822 device to the iOS/Android master?</title><link>https://devzone.nordicsemi.com/thread/7923?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2014 22:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0589d043-9efe-4976-af5d-8dbd61c4916d</guid><dc:creator>Gil dePaula</dc:creator><description>&lt;p&gt;I have a couple of questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Which Soft Device is it compatible with: s110_nrf51822_6.0.0-1.alpha_softdevice.hex or s110_nrf51822_6.0.0-5.beta_softdevice.hex?&lt;/li&gt;
&lt;li&gt;Which example iOS app and version should I use to turn the LED on and get Button presses from?
&lt;a target="_blank" href="https://www.nordicsemi.com/eng/Products/nRFready-Demo-APPS" rel="nofollow"&gt;https://www.nordicsemi.com/eng/Products/nRFready-Demo-APPS&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the API call to send data from the nRF51822 device to the iOS/Android master?</title><link>https://devzone.nordicsemi.com/thread/7922?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2014 19:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d44468-0018-4642-b14a-26dcbe6d2447</guid><dc:creator>Gil dePaula</dc:creator><description>&lt;p&gt;Thank you Ole.  I will try that code example.
Cheers,
Gil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the API call to send data from the nRF51822 device to the iOS/Android master?</title><link>https://devzone.nordicsemi.com/thread/7921?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2014 11:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c633d6-2b0a-4a81-b981-3e1c8d968535</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;d recommend you to have a look at &lt;a href="https://www.nordicsemi.com/eng/content/download/34055/573345/file/nAN-36.zip"&gt;nAN-36&lt;/a&gt;, which shows a basic application doing two-way communication. Code that works with SDK 5.1.0 and S110 version 6.0.0 is available on GitHub &lt;a href="https://github.com/NordicSemiconductor/nrf51-ble-app-lbs"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In short, the function call sd_ble_gatts_hvx() will send data from a GATT Server to a GATT Client, but you can do this only on a characteristic that has the notification or indicate property, and the GATT Client must have enabled notifications by writing to the CCCD for this to happen. You must therefore make sure to set up a characteristic with this property, and make sure that whatever Central device you&amp;#39;re testing with enabled this before you try to send data. If the CCCD is not enabled when you try to send a notification/indication, you&amp;#39;ll get NRF_ERROR_INVALID_STATE back, as noted in the header file comment in ble_gatts.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>