<?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>Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11185/erase-whitelist-data-in-sdk9-0</link><description>Hello, 
 I am working on S110 v8.0 softdevice and SDK9.0 and need to implement whitelist in our application. I am referring to the ble_app_hids_keyboard example project. 
 But how to erase the whitelist data? I couldn&amp;#39;t find document regarding usage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jan 2016 13:18:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11185/erase-whitelist-data-in-sdk9-0" /><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41904?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 13:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b098b084-6324-420e-b1ec-3d1ade11a5d7</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes thank you for the reply. I am able to delete whitelist data with &lt;em&gt;dm_device_delete_all()&lt;/em&gt; function and it is working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41905?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 10:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4422bbbf-ce7f-47df-a925-ea31ed26c578</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;That is probable because of this case in ble_advertising_on_ble_evt():&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_DISCONNECTED:
{
    uint32_t err_code;
    m_whitelist_temporarily_disabled = false;

    if (p_ble_evt-&amp;gt;evt.gap_evt.conn_handle == current_slave_link_conn_handle)
    {
       err_code = ble_advertising_start(BLE_ADV_MODE_DIRECTED);
       if ((err_code != NRF_SUCCESS) &amp;amp;&amp;amp; (m_error_handler != NULL))
       {
           m_error_handler(err_code);
       }
    }
    break;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On disconnect it will enable the whitelist and start directed advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41902?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2016 04:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:658759b9-de9f-4e1d-9981-dc09bb3df518</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes in some thread I found the soultion to use ble_advertising_restart_without_whitelist() but after disconnect from 2nd device, will it be able to connect to the first or second device? I found that it will be able to connect to the first device not the second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41903?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 14:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88cf290f-7e42-4e0f-a917-91b17befcacc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I believe I have misunderstood your problem. Maybe you can just call ble_advertising_restart_without_whitelist() on button press? The bond to the first device will not be deleted, but the second device should be able to connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41907?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 10:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfb68bc1-7522-4d9d-81b8-724d506780f3</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Can you please clarify me that ble_app_hids_keyboard example allows us to erase the whitelist or is it an example only to store the bonded device ?
Edit: I want the board to be connected to single master(mobile) and if user wishes to change the phone then using the button press I should be able to erase the whitelist data. This is my requirement and the application will not advertise after disconnection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41906?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 10:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dc02cb1-a5fb-481a-8036-11717e37be6f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I believe you are mixing up directed advertising with advertising with whitelist. To disable directed advertising change the ble_adv_modes_config_t struct in advertising_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41901?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 13:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84d2162-761a-43f4-a08c-ccc949578b9d</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;I followed the way suggested by you but it is not working. I added dm_device_delete_all() before the code snippet in on_adv_evt callback for BLE_ADV_EVT_PEER_ADDR_REQUEST case:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;            // Only Give peer address if we have a handle to the bonded peer.
        if(m_bonded_peer_handle.appl_id != DM_INVALID_ID)
        {
                        
            err_code = dm_peer_addr_get(&amp;amp;m_bonded_peer_handle, &amp;amp;peer_address);
            APP_ERROR_CHECK(err_code);

            err_code = ble_advertising_peer_addr_reply(&amp;amp;peer_address);
            APP_ERROR_CHECK(err_code);
            
        }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After this the address stored is cleared but still I am not able to connect from a 2nd device i.e., 1st I am connecting through MCP on PC and for the 2nd time I am trying to connect using MCP on android.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41900?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 09:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66a9801a-6c15-41bb-a0a5-d1738fbab10a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I think you are correct :) If you delete a bond in the device manager the address/IRK of the bond will not be included in the whitelist created with dm_whitelist_create().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41899?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 09:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:395bdeac-43e1-4583-ae5d-d99b120ddcf5</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes I am testing with unmodified example and bonding is enabled in that example. Now I am getting a question that can the bond manager and whitelist be used together?&lt;/p&gt;
&lt;p&gt;Update: Ok I got it. If we delete bond information, whitelist address stored also will be erased. I&amp;#39;m I correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase whitelist data in sdk9.0</title><link>https://devzone.nordicsemi.com/thread/41898?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 09:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c2baa1d-c562-4b0b-9c7e-6eb47026556f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you are using the unmodified example you are using the device manager. The whitelist is created by calling dm_whitelist_create(). This created a whitelist with the addresses and IRKs of the bonds that currently exist.&lt;/p&gt;
&lt;p&gt;So to &amp;quot;erase&amp;quot; whitelist data either don&amp;#39;t use dm_whitelist_create() or delete bonds with dm_device_delete() or dm_device_delete_all() before you create the whitelist with dm_whitelist_create().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>