<?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>Button to enable bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19967/button-to-enable-bonding</link><description>Nrf52 SDK12.2 armgcc 
 I have a button on my device (peripheral) that when pressed starts a timer for 30 seconds.
During that 30 seconds, I would like to have the device be in a sort of pairing mode. In the pairing mode, the device would be able to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 25 Feb 2017 17:15:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19967/button-to-enable-bonding" /><item><title>RE: Button to enable bonding</title><link>https://devzone.nordicsemi.com/thread/77695?ContentTypeID=1</link><pubDate>Sat, 25 Feb 2017 17:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2586d56-45a8-4e5f-a7d8-2032e0b4ab9f</guid><dc:creator>Bryan H</dc:creator><description>&lt;p&gt;Thank you.
At device startup, I set:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pm_sec_params_set(NULL)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When Pairing button is pressed, I set the pm_sec_params_set parameters to accept bonding.
After a successful bond or if timer timers out, I return to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pm_sec_params_set(NULL)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Works great - thanks for the help!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button to enable bonding</title><link>https://devzone.nordicsemi.com/thread/77694?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 11:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79df3ab2-113e-4a3c-95aa-b8f8a891d98b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you only want to let devices pair 30 seconds after the button has been pressed I think you can use pm_sec_params_set().&lt;/p&gt;
&lt;p&gt;When the button is pushed call pm_sec_params_set() with the security parameters you want to use when pairing/bonding, when the timer expires call pm_sec_params_set(NULL) to disallow pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>