<?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>Cannot re-bond when peer is deleted from nRF52 but not from iOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73588/cannot-re-bond-when-peer-is-deleted-from-nrf52-but-not-from-ios</link><description>Our project is using SDK 15.3.0 on a nRF25840. Similar to this post , we&amp;#39;d like to be able to re-bond if the bond has been deleted on the Nordic side but not on the phone side. Given iOS restrictions that prevent an iOS app from deleting a bond from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Apr 2021 12:32:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73588/cannot-re-bond-when-peer-is-deleted-from-nrf52-but-not-from-ios" /><item><title>RE: Cannot re-bond when peer is deleted from nRF52 but not from iOS</title><link>https://devzone.nordicsemi.com/thread/303145?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 12:32:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6c64f7-2d5b-423d-bc64-e860e8415e94</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Is there a way to allow the SDK to repair without removing the bond from the phone?[/quote]
&lt;p&gt;In the case you describe, the bonding information is removed on the nRF but not on the iPhone. There is no to pair these devices again without removing the bond on the iPhone as well in this case. This is for security reasons, and unlike the nRF SoftDevice, the BLE API on the iOS does not allow you to specify that bonds can be overwritten (or even delete bonds from an app, as you write). So in other words, there is nothing you can do with this issue from the nRF side if you use bonding.&lt;/p&gt;
[quote user=""]Our alternative is to maintain a larger peer list (rather than delete the previous peer with each new bond) and only add our single desired device to the whitelist, but we&amp;#39;ll still need to limit the peer count and we may eventually encounter the limit and need to delete a peer. Meanwhile, the phone&amp;#39;s bond may still be present.[/quote]
&lt;p&gt;This approach is viable. I do not see any problem with this. As you write, you may need to delete bonds at some point (though if you have a lot of flash space available that may be more theoretical then practical depending on how your product is used). If so, you would be back to a situation where the bond would have to be deleted on the phone for any deleted bonds. Note that the peer manager library has a concept of peer ranking, so you can easily find out which bonds are recently used or not, and only delete bonds that have not been recently used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>