<?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>HID automatically bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79627/hid-automatically-bonding</link><description>Hi, 
 We are using nRF52810 with SDK14.2 to make a HID device.Our device will be automatically bound after connecting to the computer, how can we know our device is bonded in code? 
 Because we need different sleep mode or work mode When the device is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Sep 2021 09:57:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79627/hid-automatically-bonding" /><item><title>RE: HID automatically bonding</title><link>https://devzone.nordicsemi.com/thread/329374?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 09:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4a7d95-9678-48db-a544-8e727ed72742</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use pm_next_peer_id_get() to iterate through the bond table like the peer_list_get() function does in the ble_app_hids example. If it returns &amp;#39;PM_PEER_ID_INVALID&amp;#39; it means you don&amp;#39;t have any stored bonds.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>