<?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>I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20382/i-have-a-question-about-configuration-of-charateristic-value-r-w-permission</link><description>I saw following code configuring about permission of charateristic value R/W. 
 it&amp;#39;s in uart example of SDK 11.0.0. 
 static uint32_t tx_char_add (ble_nus_t * p_nus, const ble_nus_init_t * p_nus_init){
 ...
 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;attr_md</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 19 Mar 2017 02:22:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20382/i-have-a-question-about-configuration-of-charateristic-value-r-w-permission" /><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79460?ContentTypeID=1</link><pubDate>Sun, 19 Mar 2017 02:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1898642-ddd4-4951-8b6a-13d365e14e62</guid><dc:creator>JoonDong</dc:creator><description>&lt;p&gt;Thank you always.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79459?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 09:31:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b47c5c74-320b-47b5-836d-9ad37a277d41</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79458?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2017 14:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f53f150-4f85-4a59-b99d-9ceffb55a2cd</guid><dc:creator>JoonDong</dc:creator><description>&lt;p&gt;Sorry.. I can&amp;#39;t understand.. because I couldn&amp;#39;t find out intersection about configuration between char_md and attr_md.&lt;/p&gt;
&lt;p&gt;there are contents about R/W availability, descriptors and so on in char_md.
And in attr_md, there are contents about R/W permission, authoration and so on in attr_md.&lt;/p&gt;
&lt;p&gt;Could you explain in detail??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79457?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 10:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e43840f3-535b-4426-a191-57bf4d139963</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, part of the security for a device can be to limit the read/write properties.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;attr_md&lt;/code&gt; sets the actual properties for a characteristic (the actual accessibility). &lt;code&gt;char_md&lt;/code&gt; sets the properties that will be found during service discovery. For the properties to be in conformance with the Bluetooth Spec, the &lt;code&gt;attr_md&lt;/code&gt; properties and the &lt;code&gt;char_md&lt;/code&gt; properties should be the same.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update March 17th 2017:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/properties_5F00_permissions.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;When adding a characteristic, both characteristic metadata and attribute metatdata should be set.
As stated in the documentation for the characteristic metatdata --&amp;gt; characteristic properties (ble_gatts_char_md_t --&amp;gt; ble_gatt_char_props_t), it is only the &lt;strong&gt;properties&lt;/strong&gt; of the characteristic.&lt;/p&gt;
&lt;p&gt;The attribute metadata (ble_gatts_attr_md_t) contains the actual permissions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79456?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 09:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58eeaec7-66ef-474a-b733-29a9bbcf953b</guid><dc:creator>JoonDong</dc:creator><description>&lt;p&gt;But should cccd be set to Write and Notify?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79455?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 09:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b63bd24-491e-4cd5-9346-9d7f13d99802</guid><dc:creator>JoonDong</dc:creator><description>&lt;p&gt;And I can&amp;#39;t find out the setting about R/W availability of Characteristic&amp;#39;s components(characteristic value attribute, cccd and so on.. )&lt;/p&gt;
&lt;p&gt;does Characteristic&amp;#39;s R/W availability automatically apply to Characteristic&amp;#39;s components?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79454?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 01:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:025255a8-7306-4512-b127-f81f0a629c30</guid><dc:creator>JoonDong</dc:creator><description>&lt;p&gt;Finally, does it mean that R/W availability and R/W permission should be separated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about configuration of charateristic value R/W permission.</title><link>https://devzone.nordicsemi.com/thread/79453?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 17:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c951a73f-cba5-42b2-9730-2ddc61618540</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;You may find &lt;a href="https://devzone.nordicsemi.com/tutorials/17/"&gt;this tutorial&lt;/a&gt; useful, more specifically Step 2.F.
The following code configures a characteristic to allow Read and Notify but reject Write.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void ble_add_char(){
    ...

    //Add Characteristics to stack
    ble_gatts_char_md_t char_md;

    memset(&amp;amp;char_md, 0, sizeof(char_md));
    char_md.char_props.write_wo_resp  = 0;
    char_md.char_props.write  = 0;
    char_md.char_props.read   = 1;
    char_md.char_props.notify = 1;

    ...

    //Add Characteristic to stack
    sd_ble_gatts_characteristic_add(service, &amp;amp;char_md, &amp;amp;attr_char_value, handle);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>