<?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>Pairing and unBonding nrf52840 dk Central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119813/pairing-and-unbonding-nrf52840-dk-central</link><description>Hi, 
 I am currently trying to work with pairing and bonding between the peripheral and Central device. 
 I am using two nrf52840 dk one as central and the other as peripheral. I am able to pair and bond with the device using the passkey entry. I used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Mar 2025 02:08:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119813/pairing-and-unbonding-nrf52840-dk-central" /><item><title>RE: Pairing and unBonding nrf52840 dk Central</title><link>https://devzone.nordicsemi.com/thread/527740?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 02:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0659f65-f793-4209-96a4-3b694183534b</guid><dc:creator>MMH</dc:creator><description>&lt;p&gt;Hi Elinar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for your response it really helped! It&amp;#39;s working now the way I want it to.&lt;/p&gt;
&lt;p&gt;Cheers,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mujeefa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing and unBonding nrf52840 dk Central</title><link>https://devzone.nordicsemi.com/thread/527392?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 13:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:807238e9-93a2-49b6-8217-3b32f38e0280</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;HI&amp;nbsp;Mujeefa,&lt;/p&gt;
[quote user=""]1. How do I delete the old pairing information from the central side to re-pair without resetting my central device?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can iterate through all bonds using&amp;nbsp;&lt;code&gt;bt_foreach_bond()&lt;/code&gt; and call &lt;code&gt;bt_unpair()&lt;/code&gt;&amp;nbsp;to delete them (or just the one you want to delete if you have others. you want to keep).&lt;/p&gt;
&lt;p&gt;You can also alow re-pairing using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y
CONFIG_BT_ID_UNPAIR_MATCHING_BONDS=y&lt;/pre&gt;&lt;/p&gt;
[quote user=""]2. How do I know when the bond was deleted on the peripheral device?[/quote]
&lt;p&gt;You will get the&amp;nbsp;security_changed callback regardless of if securing the link was successfull or not, and if it was not (for instance due to the peer not having the bondign information anymore, you will know. See and example of that &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/7787b264984022cda64d9629278942053e6462a5/samples/bluetooth/central_uart/src/main.c#L420"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>