<?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>C Issue when adding a new characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60096/c-issue-when-adding-a-new-characteristic</link><description>Hi there, 
 I am having a hard time with some C pointers to add a new BLE Characteristic. 
 I would like to have a function that returns a simple characteristic metadata and attribute value, given some parameters: 
 
 
 
 Then I can call my function from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Apr 2020 08:12:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60096/c-issue-when-adding-a-new-characteristic" /><item><title>RE: C Issue when adding a new characteristic</title><link>https://devzone.nordicsemi.com/thread/244611?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 08:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d4f7adf-87f1-490e-9dca-1b1184f6d973</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which SDK version and SoftDevice version are you using?&lt;/p&gt;
&lt;p&gt;One thing I noticed is that if the notify parameter passed to&amp;nbsp;getUnsecureCharacteristic is true, then the&amp;nbsp;char_md-&amp;gt;p_cccd_md is set to NULL, which is incorrect if notify is true.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can compare your code with this Custom service tutorial that I made, see&amp;nbsp;&lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;https://github.com/bjornspockeli/custom_ble_service_example&lt;/a&gt;.&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>