<?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>BLE Uart Example - Ready Event ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18814/ble-uart-example---ready-event</link><description>Is there an event that I can hook into that fires when the soft device has finished it&amp;#39;s connection and negotiation with the phone and is ready to send data to the phone ? 
 Basically, what I&amp;#39;m trying to achieve is the following: 
 
 Device is asleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jan 2017 23:48:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18814/ble-uart-example---ready-event" /><item><title>RE: BLE Uart Example - Ready Event ?</title><link>https://devzone.nordicsemi.com/thread/72653?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 23:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a5f1a9-4843-4d5e-929f-e6b6b5e4ad28</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;Perfect answer, thank you for taking the time! Not only do I know what to do, I also understand completely why my own attempts were not working. Brilliant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Uart Example - Ready Event ?</title><link>https://devzone.nordicsemi.com/thread/72652?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 11:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce973a43-06de-46f9-8178-bcf3467b9f63</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will get a &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt; event in the BLE event handler, &lt;code&gt;on_ble_evt()&lt;/code&gt;, when the device is connected. The issue with start sending data when this event is received is that the BLE UART example use notifications when sending data. The function &lt;code&gt;ble_nus_string_send()&lt;/code&gt; will not send any data before notifacations is enabled from the central side. When the CCCD handle for the characteristic is written, to enable notifications, the function &lt;code&gt;on_write()&lt;/code&gt; in &lt;em&gt;ble_nus.c&lt;/em&gt; is called. You can use the method described in &lt;a href="https://devzone.nordicsemi.com/question/95597/triggering-event-handler-upon-cccd-for-notifications-change/?answer=95743#post-id-95743"&gt;this post&lt;/a&gt; to send data on notifications enable.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>