<?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>NRF51 Bootloader Advertising Timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18696/nrf51-bootloader-advertising-timeout</link><description>Hi, 
 I am working on bootloader_secure example on SDK_12.1.0 and set APP_ADV_TIMEOUT_IN_SECONDS to 180 to stop the advertising after 3 mins. 
 All looks fine and device stops advertising 3 mins later but advertising LED still stays ON. Is there a way</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jan 2017 09:45:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18696/nrf51-bootloader-advertising-timeout" /><item><title>RE: NRF51 Bootloader Advertising Timeout</title><link>https://devzone.nordicsemi.com/thread/72194?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 09:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6bd56c7-5157-47a6-b6a3-c3ff28b26d15</guid><dc:creator>erky</dc:creator><description>&lt;p&gt;Michael, it did the trick, thanks :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 Bootloader Advertising Timeout</title><link>https://devzone.nordicsemi.com/thread/72193?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 08:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c730ce26-7722-45e6-909e-ab544ed6b64a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I recommend going for the second option, i.e. call &lt;code&gt;advertising_stop()&lt;/code&gt; when you receive the &lt;code&gt;BLE_GAP_EVT_TIMEOUT&lt;/code&gt; event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 Bootloader Advertising Timeout</title><link>https://devzone.nordicsemi.com/thread/72192?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 01:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2651224b-92dc-4bd0-9e37-f5e7bb9cc4d8</guid><dc:creator>Michael Antwih</dc:creator><description>&lt;p&gt;I believe you might need to handler the BLE_GAP_EVT_TIMEOUT event inside the on_ble_evt function in nrf_ble_dfu.c file.&lt;/p&gt;
&lt;p&gt;Add to the switch statement&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_TIMEOUT:
nrf_gpio_pin_set(ADVERTISING_LED_PIN_NO);
break;&lt;/p&gt;
&lt;p&gt;Or you can simply call advertising_stop function&lt;/p&gt;
&lt;p&gt;case BLE_GAP_EVT_TIMEOUT:
advertising_stop();
break;&lt;/p&gt;
&lt;p&gt;Using advertising stop is probably the best method just in case there is clean up or flags to be cleared.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>