<?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>Is there anything wrong with my value characteristic initiation function?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23493/is-there-anything-wrong-with-my-value-characteristic-initiation-function</link><description>Hello, please refer to the below code, in particular, did I get the cccd handle right? 
 static uint32_t mesh_value_char_add(void)
{
/* BLE GATT metadata */
 ble_gatts_attr_md_t cccd_md;
memset(&amp;amp;cccd_md, 0, sizeof(cccd_md));

BLE_GAP_CONN_SEC_MODE_SET_OPEN</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jul 2017 13:32:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23493/is-there-anything-wrong-with-my-value-characteristic-initiation-function" /><item><title>RE: Is there anything wrong with my value characteristic initiation function?</title><link>https://devzone.nordicsemi.com/thread/92276?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 13:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b6fb19-72a8-40d5-bcf7-a2f1f10df890</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mitch,&lt;/p&gt;
&lt;p&gt;take a look at &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;this&lt;/a&gt; tutorial, it shows how you create a custom BLE service and add a characteristic with the read, write and notify properties.&lt;/p&gt;
&lt;p&gt;Specifically, take a look at custom_value_char_add() in &lt;code&gt;ble_cus.c&lt;/code&gt;, &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example/blob/master/ble_cus.c"&gt;here&lt;/a&gt; is the link.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>