<?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 Whitelist Difference between hids_keyboard and hids_mouse example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72777/advertising-whitelist-difference-between-hids_keyboard-and-hids_mouse-example</link><description>SDK: 17.0.0 
 Hardware: E-Byte E73-2G4M04S1B module 
 Chipset: NRF52832 QFAA QFN48 
 
 Running the hids examples, I noticed that the hids_mouse example will go from Fast Adv Whitelist → Slow Adv Whitelist → Slow Adv. However, once bonded, the hids_keybaord</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 13:24:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72777/advertising-whitelist-difference-between-hids_keyboard-and-hids_mouse-example" /><item><title>RE: Advertising Whitelist Difference between hids_keyboard and hids_mouse example</title><link>https://devzone.nordicsemi.com/thread/299803?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 13:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed7997f-9f76-40a0-a32d-abde8510dce8</guid><dc:creator>Orotavia</dc:creator><description>&lt;p&gt;Got it, thank you! I&amp;#39;ll try to implement restart_without_whitelist() then, that seems like exactly what I need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising Whitelist Difference between hids_keyboard and hids_mouse example</title><link>https://devzone.nordicsemi.com/thread/299750?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 11:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0041a4f-0df1-4f7a-80ca-3c811cd7963b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There seems to be a bug in the HID mouse example. The handling of the &lt;code&gt;BLE_ADV_EVT_SLOW_WHITELIST&lt;/code&gt; event is like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case BLE_ADV_EVT_SLOW_WHITELIST:
            NRF_LOG_INFO(&amp;quot;Slow advertising with whitelist.&amp;quot;);
            err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING_WHITELIST);
            APP_ERROR_CHECK(err_code);
            err_code = ble_advertising_restart_without_whitelist(&amp;amp;m_advertising);
            APP_ERROR_CHECK(err_code);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which is not correct. It should have been the same as the keyboard example (where it does not start advertising without whitelist here):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case BLE_ADV_EVT_SLOW_WHITELIST:
            NRF_LOG_INFO(&amp;quot;Slow advertising with whitelist.&amp;quot;);
            err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING_WHITELIST);
            APP_ERROR_CHECK(err_code);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In both cases whitelisting can be explicitly turned off by a button press, where&amp;nbsp;&lt;code&gt;ble_advertising_restart_without_whitelist()&lt;/code&gt; is called on the&amp;nbsp;&lt;code&gt;BSP_EVENT_WHITELIST_OFF&lt;/code&gt; event. This is the correct approach for a HID device, which you only want to advertise without whitelisting when you are specifically trying to connect it to a new central.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>