<?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>Long running task</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4787/long-running-task</link><description>Hi, 
 I have following use case. The write operation on one of the characteristics triggers some UART job which takes about 1 / 1.5 seconds to complete. After the completion, results are sent through notification by use of ble_gatts_hvx method. 
 This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Dec 2014 14:18:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4787/long-running-task" /><item><title>RE: Long running task</title><link>https://devzone.nordicsemi.com/thread/16958?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 14:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f139447a-1d3c-473e-902a-f7424a57daa7</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Anything that is put into the &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.1.0/s110/html/a00014.html"&gt;scheduler&lt;/a&gt; queue executes in the main function, i.e. with the lowest priority. The BLE softdevice (BLE stack) runs with the highest priority so any application interrupt can not interrupt the softdevice.&lt;/p&gt;
&lt;p&gt;Do you get any error message when you call ble_gatts_hvx?&lt;/p&gt;
&lt;p&gt;What code template are you using? There is one available &lt;a href="https://github.com/NordicSemiconductor/nrf51-UART-examples/tree/master/app_uart_library_example_with_ble"&gt;here&lt;/a&gt; for the UART and BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>