<?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>Prolong advertising duration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43635/prolong-advertising-duration</link><description>Hey, 
 simple question: What is the recommend approach on prolonging the advertising period? 
 Example: 
 User clicks a button -&amp;gt; advertising starts for 180 seconds. 
 User clicks button again while the device is advertising -&amp;gt; prolong advertising for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Feb 2019 07:50:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43635/prolong-advertising-duration" /><item><title>RE: Prolong advertising duration</title><link>https://devzone.nordicsemi.com/thread/171288?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 07:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37aaa228-ff73-4c98-9272-beec74efd542</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can make it advertise forever by setting the adv. timeout to &amp;#39;0&amp;#39; and use the&amp;nbsp;BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE flag (see adv. init). BLE_GAP_ADV_FLAG_LE&lt;strong&gt;_LIMITED_&lt;/strong&gt;DISC_MODE&amp;nbsp; limits the max. advertisement duration to 180 seconds. Else&amp;nbsp;you can use a button event to extend the advertisement duration in 180 s increments like you said.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>