<?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>Manage wrong passkey</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5249/manage-wrong-passkey</link><description>Hi,
I am try to manage situation when a wrong PIN code is provided from Master control Panel. 
 Using an NRF51822 with S110 I receive this code: 
 BLE_GAP_SEC_STATUS_CONFIRM_VALUE 
 wich is what I espected, but if I try to send a disconnection : </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jan 2015 15:55:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5249/manage-wrong-passkey" /><item><title>RE: Manage wrong passkey</title><link>https://devzone.nordicsemi.com/thread/18383?ContentTypeID=1</link><pubDate>Tue, 27 Jan 2015 15:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa02868-e64a-4977-94f8-08773fc9b76d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lorens,&lt;/p&gt;
&lt;p&gt;Are you sure you received NRF_ERROR_INVALID_STATE instead of NRF_ERROR_INVALID_PARAM ?
As mentioned in the sd_ble_gap_disconnect() description, there are only 2 disconnect reasons accepted :
BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION
and
BLE_HCI_CONN_INTERVAL_UNACCEPTABLE&lt;/p&gt;
&lt;p&gt;(SDK v7.2)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>