<?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>Make ble_uart_app discoverable and connectable (advertising) forever</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15245/make-ble_uart_app-discoverable-and-connectable-advertising-forever</link><description>I am using nRF51-DK hardware and working on the ble_uart_app s130 SDK_11 
 Upon power-up, nRF51 is discoverable and connectable. After sometime, it is no longer discoverable and connectable (advertising). I would like to make it discoverable and connectable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2016 05:48:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15245/make-ble_uart_app-discoverable-and-connectable-advertising-forever" /><item><title>RE: Make ble_uart_app discoverable and connectable (advertising) forever</title><link>https://devzone.nordicsemi.com/thread/58213?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 05:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69e9d667-1ddd-40c9-bf9a-0d477d656534</guid><dc:creator>helpme</dc:creator><description>&lt;p&gt;Thank you very much for the answer. I have verified that it works! I guess BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE is for putting the BLE chip into discoverable mode forever.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Make ble_uart_app discoverable and connectable (advertising) forever</title><link>https://devzone.nordicsemi.com/thread/58212?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 11:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f772cc3-8beb-4f7c-9982-e3340f2751e6</guid><dc:creator>helpme</dc:creator><description>&lt;p&gt;If I set it to 0, the board never enter advertising state. Another strange thing is that if I set it to any value &amp;gt;180, the board does not enter advertising state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Make ble_uart_app discoverable and connectable (advertising) forever</title><link>https://devzone.nordicsemi.com/thread/58211?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 11:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96884873-236c-43d7-81ef-09fde466a678</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You should look at the advertising timeout:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_ADV_TIMEOUT_IN_SECONDS      180                                         /**&amp;lt; The advertising timeout (in units of seconds). */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can set it to 0x0000 to disable timeout.&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;And you need to change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in advertising_init()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>