<?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>Continuous advertising issue with hid app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54071/continuous-advertising-issue-with-hid-app</link><description>In some other non-hid app, I can set APP_ADV_TIMEOUT_IN_SECONDS to zero and it worked fine. The advertising is continuous. 
 But in the ble_app_hids_mouse, I set both APP_ADV_FAST_DURATION and APP_ADV_SLOW_DURATION to be equal to zero, and it no longer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Nov 2019 00:25:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54071/continuous-advertising-issue-with-hid-app" /><item><title>RE: Continuous advertising issue with hid app</title><link>https://devzone.nordicsemi.com/thread/219186?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2019 00:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:955bce63-e991-477b-b2d2-0de18b6e2773</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn. That works for me!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Continuous advertising issue with hid app</title><link>https://devzone.nordicsemi.com/thread/218983?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 08:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5776f6cc-e278-40c6-9562-7a54092b327d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;the ble_app_hids_mouse example uses the ble_advertising module, which doesn&amp;#39;t support infinite timeout.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Instead it goes through a number of advertising states, as described in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_ble_advertising.html?cp=5_1_3_2_1"&gt;documentation&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want the example to stay in the slow advertising mode forever a simple way to change the BLE_ADV_EVT_IDLE case in the&amp;nbsp;on_adv_evt(..) handler like this (line 846 of main.c in the ble_app_hids_mouse example):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;case BLE_ADV_EVT_IDLE:
    err_code = bsp_indication_set(BSP_INDICATE_IDLE);
    APP_ERROR_CHECK(err_code);

    ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_SLOW);
    APP_ERROR_CHECK(err_code);
    //sleep_mode_enter();
    break;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then the advertising module will restart slow advertising as soon as it times out, and keep going forever (or until someone connects).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>