<?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>Secure Connections Only Mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14573/secure-connections-only-mode</link><description>How do I enable Secure Connections Only mode on S130/nRF51? 
 Alternatively, how do I tell if pairing was performed using LE Secure Connections?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jun 2016 11:55:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14573/secure-connections-only-mode" /><item><title>RE: Secure Connections Only Mode</title><link>https://devzone.nordicsemi.com/thread/55645?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2016 11:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6025f729-0795-4328-a1c8-3a3cdcab6d84</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;You can find the pairing parameters from the peer device when BLE_GAP_EVT_SEC_PARAMS_REQUEST event occurs. If you don&amp;#39;t want to bond with a device doesn&amp;#39;t support LE secure connection you can reject that with the sd_ble_gap_sec_params_reply().&lt;/p&gt;
&lt;p&gt;In addition, when you declare a characteristic, you can choose the security level. If you choose security level 4, BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM() , bonding with LE Secure connection will be required if the peer wants to read data from the characteristic.&lt;/p&gt;
&lt;p&gt;When 2 device paired, you will receive BLE_GAP_EVT_AUTH_STATUS, and you can find in the parameter comes (ble_gap_evt_auth_status_t) with the event the security level that the connection currently is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>