<?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>How to terminate &amp;quot;Scheduled Task&amp;quot; on receiving &amp;quot;BLE Disconnection Event&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34797/how-to-terminate-scheduled-task-on-receiving-ble-disconnection-event</link><description>Dear All, 
 I am using &amp;quot;Scheduler&amp;quot; module as mentioned in this tutorial Scheduler Tutorial . 
 I have one question. My scheduler tasks are using some SD functions which require to have &amp;quot;Valid BLE connection&amp;quot;. These tasks are put in the queue as soon as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 May 2018 11:47:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34797/how-to-terminate-scheduled-task-on-receiving-ble-disconnection-event" /><item><title>RE: How to terminate "Scheduled Task" on receiving "BLE Disconnection Event"</title><link>https://devzone.nordicsemi.com/thread/133638?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 11:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75c3cbd-b083-4af4-a0c2-059228b7ee9a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think that is the way to go also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to terminate "Scheduled Task" on receiving "BLE Disconnection Event"</title><link>https://devzone.nordicsemi.com/thread/133538?ContentTypeID=1</link><pubDate>Sun, 27 May 2018 03:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2a25540-91d5-47ba-b425-1adcce095f90</guid><dc:creator>rogerarchibald</dc:creator><description>&lt;p&gt;Could you create a global variable to use as a flag, set the flag on disconnect in the ble event handler, and just check that flag as part of your sub-tasks?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>