<?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>Why is the whitelist set to NULL?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13155/why-is-the-whitelist-set-to-null</link><description>I am looking at the ble_app_hrs_c example (with the s130 soft device on pca10028 dev board). I have set the m_scan_mode to BLE_WHITELIST_SCAN to enable whitelisting. In the &amp;quot;on_ble_eve&amp;quot; function just before it connects, it sets the &amp;quot;p_whitelist&amp;quot; variable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Apr 2016 08:53:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13155/why-is-the-whitelist-set-to-null" /><item><title>RE: Why is the whitelist set to NULL?</title><link>https://devzone.nordicsemi.com/thread/50146?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 08:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6822d735-9721-453d-b430-ff3385b08e28</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Sorry for the many updates, I had a deeper look into things.&lt;/p&gt;
&lt;p&gt;The example is using the Device Manager function &lt;code&gt;dm_whitelist_create()&lt;/code&gt; to generate a whitelist consisting of all the currently bonded devices. If there are no bonded devices it will use the empty whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is the whitelist set to NULL?</title><link>https://devzone.nordicsemi.com/thread/50145?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 21:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6cc8cd-e7fd-4755-b466-00c0f28f4655</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;The more I look at the example, the more it looks like it was at least supposed to be set up to handle whitelisting.  Note that the &amp;quot;m_scan_mode&amp;quot; is setup take inputs of type &amp;quot;ble_scan_mode_t&amp;quot; which includes &amp;quot;BLE_WHITELIST_SCAN.&amp;quot;  Which I would hope would imply that whitelisting is an option.  What would it take to make this example able to use whitelisting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is the whitelist set to NULL?</title><link>https://devzone.nordicsemi.com/thread/50144?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 20:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e673bde-c92d-4bac-a6bc-49de4c75b4d7</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;So the answer by run_ar,
&lt;a href="https://devzone.nordicsemi.com/question/58080/whitelisting-example-on-central-and-peripheral-devices/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
saying that the heat rate example is an example of whitelisting, is false?  Is there an example of whitelisting for the central?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is the whitelist set to NULL?</title><link>https://devzone.nordicsemi.com/thread/50143?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 13:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6085a7a-8ecc-467f-af5d-96bb1b8c6e4a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;p_whitelist&lt;/code&gt; is set to NULL in one of the two possible cases. This is to allow the ble_app_hrs_c example to connect to new devices. In the other case it is set to point to a whitelist.&lt;/p&gt;
&lt;p&gt;The reason why there is a non-whitelist case is to allow the device to connect to new peripherals. These peripherals can then be added to the whitelist. In this example the Device Manager is used for building a whitelist of all of the bonded devices, using &lt;code&gt;dm_whitelist_create()&lt;/code&gt;. If there are no bonded devices the whitelist will be empty, resulting in using the NULL pointer and not using whitelist, allowing for a new device to bond.&lt;/p&gt;
&lt;p&gt;If you do have another way to build the whitelist you can manage with only the case using the whitelist.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>