<?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>nRF52840 SDK16 s140 - Delete bonds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64485/nrf52840-sdk16-s140---delete-bonds</link><description>Hi everyone, 
 I am looking the ble_app_template_pca10056_s140 example and I have a question regarding the advertising_start(erase_bonds) function in main(); 
 When you call the advertising_start() function you pass a bool (in our case erase_bonds) as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Aug 2020 12:06:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64485/nrf52840-sdk16-s140---delete-bonds" /><item><title>RE: nRF52840 SDK16 s140 - Delete bonds</title><link>https://devzone.nordicsemi.com/thread/264610?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 12:06:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13abfc6c-c326-4e81-a17c-66559c1b022f</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Thank you Susheel!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 - Delete bonds</title><link>https://devzone.nordicsemi.com/thread/263183?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 10:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d7d15d8-c254-4ef5-800c-2ec7ec422fe6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Nikos&lt;/p&gt;
&lt;p&gt;This is just an example for you to demonstrate when you can delete the bonds.&lt;/p&gt;
&lt;p&gt;In this example, like you figured out, when you press the button while system restart, erase_bonds will be set to true by the button handler. An we send this parameter to advertise_start so that the device only starts advertising after it deletes all the bond information for it. But the use case for deleting bond information is different in different applications. If you do not use any buttons, then most like you do not need to have this erase_bonds parameter controlled by button handler, but something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>