<?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>Problem!!! BLE pairing configration in NRF52810...</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44523/problem-ble-pairing-configration-in-nrf52810</link><description>Hello All, 
 Right now i am working on nRF52810 custom board. I use segger studio in windows 7. i used nRF52 SDK 15.2.0 .Right now i am trying to pairing for security purpose. 
 I am use just working method of pairing. i initialization of pairing as shown</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Mar 2019 13:29:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44523/problem-ble-pairing-configration-in-nrf52810" /><item><title>RE: Problem!!! BLE pairing configration in NRF52810...</title><link>https://devzone.nordicsemi.com/thread/175024?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 13:29:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75855637-9290-40ae-a8fa-fa20f7d47203</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you explain again what you want to achieve? (it is not clear to me).&lt;/p&gt;
&lt;p&gt;Regarding your code, it does not make much sense to me regardless of what you want to do, for the following reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You are busy waiting for 30-ish seconds in an even handler, which is in interrupt handler mode. This will effectively block any other same or lover priority tasks to occur at the same time, which is not acceptable for most real applications. There are also other issues such as current consumption etc...&lt;/li&gt;
&lt;li&gt;The last iteration of the while loop is when&amp;nbsp;pairing_sample is 27, where is incremented to 28. After that the wile loop will exit, so if(pairing_sample &amp;gt;29) will never be true.&lt;/li&gt;
&lt;li&gt;Inside the if statement, you check an error code (&amp;quot;APP_ERROR_CHECK(err_code);&amp;quot;) which have never been set. It is clearly not correct, but it does not have any effect though, as this code is never executed.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>