<?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>Advertising timeout can not be closed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23651/advertising-timeout-can-not-be-closed</link><description>HI,
I want to turn off the broadcast timeout, but when I change the broadcast timeout macro to 0 when the program does not work，
Modify as follows： 
 #define APP_ADV_TIMEOUT_IN_SECONDS 0//180</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jul 2017 03:33:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23651/advertising-timeout-can-not-be-closed" /><item><title>RE: Advertising timeout can not be closed</title><link>https://devzone.nordicsemi.com/thread/92959?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 03:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:581ef607-b410-4ef9-80e3-54f802a08e06</guid><dc:creator>muyang</dc:creator><description>&lt;p&gt;According to your method, the problem is solved, thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising timeout can not be closed</title><link>https://devzone.nordicsemi.com/thread/92958?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 01:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1929ac46-d000-42df-9845-e3cb1e5949ae</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Hi Muyang,&lt;/p&gt;
&lt;p&gt;Can you check the parameter in &amp;quot;advertising_init()&amp;quot;?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_advdata_t                 advdata;
advdata.flags                   = **BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE**;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do you set it to the limited flag? It works for me to let device stay always advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising timeout can not be closed</title><link>https://devzone.nordicsemi.com/thread/92961?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 15:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a32e75a5-f8f6-4ac8-81ff-501a65d68de0</guid><dc:creator>muyang</dc:creator><description>&lt;p&gt;Modify the macro definition in the 51822 can work properly, but I use the same method in s132 equipment will not be broadcast, the device can not run&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising timeout can not be closed</title><link>https://devzone.nordicsemi.com/thread/92960?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 15:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9f64d58-7d97-4c8f-9ab0-e2ef0733ddc9</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi muyang,&lt;/p&gt;
&lt;p&gt;if you define the macro   APP_ADV_TIMEOUT_IN_SECONDS    0, the device will stay always in advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>