<?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>state check of nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5548/state-check-of-nrf51822</link><description>hii i use nrf51822 dev kit, and want to know the status of that is that right now advertising, pairing, connect etc. so is their any function that i use to check the status of kit or any other way to doing so. and how i check the enter passkey are valid</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Feb 2015 06:31:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5548/state-check-of-nrf51822" /><item><title>RE: state check of nrf51822</title><link>https://devzone.nordicsemi.com/thread/19417?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2015 06:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9de015a9-13da-48b2-a937-2036a0ed169d</guid><dc:creator>hiren</dc:creator><description>&lt;p&gt;hey Hung , it&amp;#39;s work now.
thank you so much...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: state check of nrf51822</title><link>https://devzone.nordicsemi.com/thread/19416?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2015 16:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac457c2-8122-48b2-aa4d-467194615dec</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hiren,&lt;/p&gt;
&lt;p&gt;Unfortunately, you would need to keep track of the state on your own in the application code. The BLE application is event driven, so you should monitor the events to know which state the device is.&lt;/p&gt;
&lt;p&gt;When you receive wrong passkey from peer device you will get BLE_GAP_EVT_AUTH_STATUS event with p_ble_evt-&amp;gt;evt.gap_evt.params.auth_status= BLE_GAP_SEC_STATUS_CONFIRM_VALUE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>