<?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>Cancel of pairing causes app_error_handler to be called</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6973/cancel-of-pairing-causes-app_error_handler-to-be-called</link><description>I&amp;#39;m using the 8.0 SDK and an iPad with iOS8.3. I&amp;#39;m experiencing the same issue described here:
 pairing cancel cause reset 
 I&amp;#39;ve written my own service, however, I can reproduce the reset condition using the Blood Glucose sample application. 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 May 2015 07:48:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6973/cancel-of-pairing-causes-app_error_handler-to-be-called" /><item><title>RE: Cancel of pairing causes app_error_handler to be called</title><link>https://devzone.nordicsemi.com/thread/24594?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 07:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:973803a1-aca2-4f23-b91f-48f11c3d5503</guid><dc:creator>Robert Blasutig</dc:creator><description>&lt;p&gt;Gotcha.  I have modified this code like so:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;switch (event_result)
	{
		case BLE_GAP_SEC_STATUS_PASSKEY_ENTRY_FAILED:
		{
			err_code = sd_ble_gap_disconnect(m_conn_handle , BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
			APP_ERROR_CHECK(err_code);
			return NRF_SUCCESS;
		}
		default:
			APP_ERROR_CHECK(event_result);
	}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And it is behaving as desired.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cancel of pairing causes app_error_handler to be called</title><link>https://devzone.nordicsemi.com/thread/24593?ContentTypeID=1</link><pubDate>Mon, 11 May 2015 11:29:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd168d0f-9129-4728-b218-bb1fd1fb31de</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you say cancel while pairing, then it is a failure of the authentication procedure.
in the application you are using, the event callback function assumes that there will be no error in the paring sequence. This is just an example and does not handle all possible errors that could happen. If you can handle the  error at line  APP_ERROR_CHECK(event_result); then this app would know about this failure and handle accordingly.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static uint32_t device_manager_evt_handler(dm_handle_t const    * p_handle,
                                           dm_event_t const     * p_event,
                                           ret_code_t        event_result)
{
    uint32_t err_code = NRF_SUCCESS;

    m_dm_handle = *p_handle;
    APP_ERROR_CHECK(event_result); //handle this
 ...
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>