<?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>Bluetooth unpairing after reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93858/bluetooth-unpairing-after-reset</link><description>Hello, I am trying to get the peripheral_lbs example to unpair all devices (delete all bond informations) using VSCode and nrf connect sdk version 2.0.2. 
 I tried using bt_unpair ( BT_ID_DEFAULT , NULL ); It only works when the device is still running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Nov 2022 15:52:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93858/bluetooth-unpairing-after-reset" /><item><title>RE: Bluetooth unpairing after reset</title><link>https://devzone.nordicsemi.com/thread/395618?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 15:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa976f57-d520-492b-8204-d1f661786a29</guid><dc:creator>DhaferBC</dc:creator><description>&lt;p&gt;bt_unpair has to be called after setiings_load()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth unpairing after reset</title><link>https://devzone.nordicsemi.com/thread/395529?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 11:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35d43e83-50b7-4594-81d1-e93834cc766d</guid><dc:creator>DhaferBC</dc:creator><description>&lt;p&gt;When I debug bt_unpair, I go to&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;bt_foreach_bond&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;unpair_remote&lt;/span&gt;&lt;span&gt;, &amp;amp;&lt;/span&gt;&lt;span&gt;id&lt;/span&gt;&lt;span&gt;); (hci_core.c file)&lt;br /&gt;the unpair_remote doesn&amp;#39;t get called because there are no keys stored in the key_pool static array (keys.c file) which is normal after a reset&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;the bond informations should be stored somewhere in the flash memory.&lt;br /&gt;Is there a way to restore them, Or I am following a bad lead.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>