<?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>Deny Connection if Unencrypted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21757/deny-connection-if-unencrypted</link><description>How do I deny a connection if the connection is unencrypted? I&amp;#39;m currently trying to do it with the peer_manager using 
 case PM_EVT_CONN_SEC_FAILED:
 {
 /** In some cases, when securing fails, it can be restarted directly. Sometimes it can
 * be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2017 08:13:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21757/deny-connection-if-unencrypted" /><item><title>RE: Deny Connection if Unencrypted</title><link>https://devzone.nordicsemi.com/thread/85441?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 08:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f670bc4-4dd3-49c2-a0ae-069dd7767109</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;One cannot prevent unencrypted connections, as &lt;strong&gt;every&lt;/strong&gt; connections starts unencrypted and then adds encryption when available.&lt;/p&gt;
&lt;p&gt;You can only prevent unencrypted access to characteristics data.&lt;/p&gt;
&lt;p&gt;One could use a timer to disconnect when a connection is still unencrypted after 30 seconds, for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>