<?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>CCCD Security Parameters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22514/cccd-security-parameters</link><description>Hi y&amp;#39;all 
 after having successfully created my own service, similar to the Uart service, I&amp;#39;m now trying to implement security. 
 As far as I understood, best practice is to define the security level for the characteristics on the peripheral to force</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jun 2017 07:18:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22514/cccd-security-parameters" /><item><title>RE: CCCD Security Parameters</title><link>https://devzone.nordicsemi.com/thread/88580?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 07:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea2df71-00c0-4b51-8cb7-83b2ecc8cf18</guid><dc:creator>Vyacheslav Lebets</dc:creator><description>&lt;p&gt;only for .read_perm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CCCD Security Parameters</title><link>https://devzone.nordicsemi.com/thread/88581?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 07:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae50cb15-9904-4703-a808-1fc2d40876e2</guid><dc:creator>Vyacheslav Lebets</dc:creator><description>&lt;p&gt;try this:
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;cccd_md.read_perm);&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/131218/add-security-to-service-characteristic/?answer=132199#post-id-132199"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CCCD Security Parameters</title><link>https://devzone.nordicsemi.com/thread/88579?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 07:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0cb72c9-7f87-482a-86f4-088d51cc91ff</guid><dc:creator>DerPMO</dc:creator><description>&lt;p&gt;Thanks, already checked that.
The strange thing is that LESC is working but legacy not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CCCD Security Parameters</title><link>https://devzone.nordicsemi.com/thread/88578?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 06:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1338e4d8-cf0b-4779-97c9-cdc4a7834f6e</guid><dc:creator>Vyacheslav Lebets</dc:creator><description>&lt;p&gt;Hi!
In place, where You init &amp;quot;peer manager&amp;quot; or &amp;quot;device manager&amp;quot;  and use structure typed as ble_gap_sec_params_t or dm_application_param_t (depending on thу SDK ver.), the field &amp;quot;mitm&amp;quot; should be = 1 like this:
if you use peer_manager:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_gap_sec_params_t sec_param;
sec_param.mitm = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and if you use device manager:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;dm_application_param_t  register_param;
register_param.sec_param.mitm = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best, VL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>