<?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>Detect if advertising?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8842/detect-if-advertising</link><description>I&amp;#39;m making a peripheral device that should be powered off most of the time, but never idle if on, so I want to make sure that it is always (1) connected, or (2) advertising. Checking the former is easy--just check &amp;quot;m_conn_handle&amp;quot; which is set by the connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Aug 2015 00:43:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8842/detect-if-advertising" /><item><title>RE: Detect if advertising?</title><link>https://devzone.nordicsemi.com/thread/32511?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 00:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e688d123-5312-4403-8074-9e6b24527a13</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I don&amp;#39;t really see the problem. It&amp;#39;s your code which restarts advertising, if that call doesn&amp;#39;t fail, you&amp;#39;re advertising, if you give the advertising no timeout then it will advertise forever, else you&amp;#39;ll get a timeout event and then you know your advertising timed out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>