<?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 trigger an action when radio is connected / disconnected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66472/how-to-trigger-an-action-when-radio-is-connected-disconnected</link><description>Hi, 
 I&amp;#39;m designing an application using SEGGER Studio for the nRF52832. I have based my application on the template peripheral example. 
 What I want to do is to trigger actions when the BLE is connected and disconnected. 
 I figured out I cannot do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 16:04:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66472/how-to-trigger-an-action-when-radio-is-connected-disconnected" /><item><title>RE: How to trigger an action when radio is connected / disconnected</title><link>https://devzone.nordicsemi.com/thread/272124?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 16:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d44b207-ad0d-43cc-a74d-9828f70ff075</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using a flag is a perfectly fine way to do this. You can also use the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/scheduler-tutorial"&gt;application scheduler library&lt;/a&gt; to schedule processing of events in the main or lower priority context.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>