<?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>How does SoftDevice set up permissions on characteristics? Example makes no sense.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53059/how-does-softdevice-set-up-permissions-on-characteristics-example-makes-no-sense</link><description>Here is the code snippet initializing the Heart Rate Measurement Characteristic in the BleHeartRateMonitor example: 
 static uint32_t characteristic_init() { uint32_t error_code; ble_gatts_char_md_t char_md; ble_gatts_attr_md_t cccd_md; ble_gatts_attr_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Oct 2019 11:48:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53059/how-does-softdevice-set-up-permissions-on-characteristics-example-makes-no-sense" /><item><title>RE: How does SoftDevice set up permissions on characteristics? Example makes no sense.</title><link>https://devzone.nordicsemi.com/thread/214590?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 11:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:498ab5e5-4b71-4034-b82a-9da8349c1614</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]How do I configure JUST the CCCD for secured write?[/quote]
&lt;p&gt;You set the value of the&amp;nbsp;cccd_write_access accordingly.&lt;/p&gt;
[quote user=""]How do I make sure the the HR measurement itself is NOT readable or writable?[/quote]
&lt;p&gt;This is at least partially answered &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53032/invalid_parameter-returned-when-setting-cccd-to-secure"&gt;here&lt;/a&gt;. Essentially this is defined by the char_props, and since char_md in this code is memset to 0, anything you do not explicitly enable by setting it to 1 is disabled. Writing or reading is not allowed with this code, as you want.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>