<?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 to add user description to characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5318/how-to-add-user-description-to-characteristic</link><description>Hi 
 I am implementing my custom service, and started from the led/button example.
I am using the LightBlue app on my iphone to connect to my device under test.
I can see the characteristics for the LED and button, but would like to add some kind of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Feb 2015 15:12:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5318/how-to-add-user-description-to-characteristic" /><item><title>RE: how to add user description to characteristic</title><link>https://devzone.nordicsemi.com/thread/18594?ContentTypeID=1</link><pubDate>Mon, 02 Feb 2015 15:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e09f47a-f1cf-4cf5-a9f6-2b6ea3a4a086</guid><dc:creator>wim</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;In fact, the Lightblue app did not update the device profile after I uploaded my new code. When I removed my device and stopped the app, and then started again, the characteristic was showing with the user description
So problem solved!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add user description to characteristic</title><link>https://devzone.nordicsemi.com/thread/18595?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2015 12:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd9f6ca-b2bf-4739-aeb0-7f55839fbb5a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wim,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any problem with your code, it worked on my side. Could you double check ?
You can just leave   char_md.p_user_desc_md    = NULL;&lt;/p&gt;
&lt;p&gt;Which error do you have when running your code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add user description to characteristic</title><link>https://devzone.nordicsemi.com/thread/18596?ContentTypeID=1</link><pubDate>Wed, 28 Jan 2015 22:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a26bbb9-6d15-4ff4-97ab-b900a4e7fd60</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;That is how I do it, here is my code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (description &amp;amp;&amp;amp; *description != &amp;#39;\0&amp;#39;)
{
    char_md.p_char_user_desc = (uint8_t*) description; // discards const 
    char_md.char_user_desc_size = strlen(description);  
    char_md.char_user_desc_max_size = char_md.char_user_desc_size;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also played around with setting the char_pf stuff, but lightblue ignored it. Having the description text is useful for debug, not sure if I will leave it in the production firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>