<?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>How to verify if a peer is already Bonded?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62786/how-to-verify-if-a-peer-is-already-bonded</link><description>Hello, 
 As specified in the subject, I would like to know if there&amp;#39;s a way to verify that a peer is already bonded with my device. My goal is to verify if a device is bonded before relaunching the advertising. Is there a flag I can watch or and event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jun 2020 12:23:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62786/how-to-verify-if-a-peer-is-already-bonded" /><item><title>RE: How to verify if a peer is already Bonded?</title><link>https://devzone.nordicsemi.com/thread/255967?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 12:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5d30d2-24ed-47d7-bee4-81824953417d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The peer manager will notify the application when a bonded peer is connected through the &amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__peer__manager.html#gga4a0e37cf07eb91e1a1808995b957808ba06f00dfb16c0013be0d7d44f2f6b0dff"&gt;PM_EVT_BONDED_PEER_CONNECTED&lt;/a&gt; event, so you can use this event. Or you can use &lt;span&gt;&lt;a title="Connection state" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_ble_conn_state.html?cp=7_1_3_2_5"&gt;Connection state&lt;/a&gt;&lt;/span&gt; module to keep track of it. There&amp;#39;s is also the PM &lt;span&gt;&lt;a title="pm_conn_sec_status_get" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__peer__manager.html?cp=7_1_6_2_16_36#ga5a2760d50178059a4156f00bb6c0eb56"&gt;pm_conn_sec_status_get&lt;/a&gt;&lt;/span&gt;() API to poll the current connection state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>