<?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 reset the advertising counter for specific mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35266/how-to-reset-the-advertising-counter-for-specific-mode</link><description>Hi, 
 
 We are working with SDK 15 with the HRS freeRTOS example. we did some modification to the advertising modes so that we advertise on fast mode for 1 minute and after that we go to slow advertising with BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED. 
 As</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jun 2018 09:01:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35266/how-to-reset-the-advertising-counter-for-specific-mode" /><item><title>RE: How to reset the advertising counter for specific mode</title><link>https://devzone.nordicsemi.com/thread/135515?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 09:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08d095c9-1e84-40f3-b39d-a65c3ad02707</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;ble_advertising_start() returns invalid state if the device is already advertising.&amp;nbsp;Calling&amp;nbsp;sd_ble_gap_adv_stop(uint8_t adv_handle); just before calling ble_advertising_start() should fix this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>