<?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 determine the length of string received through characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31197/how-to-determine-the-length-of-string-received-through-characteristic</link><description>Hello everyone, 
 It seems like a very basic issue but somehow I am unable to resolve it. 
 I have a characteristic of length 20 bytes. This characteristic is supposed to receive a string of max 20 bytes. When I receive the string in this characteristic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jul 2018 21:39:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31197/how-to-determine-the-length-of-string-received-through-characteristic" /><item><title>RE: How to determine the length of string received through characteristic</title><link>https://devzone.nordicsemi.com/thread/138623?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 21:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7b5827-d055-407a-a8fe-091143f951f1</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Did you set the vlen field in the attribute metadata when adding your characteristic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to determine the length of string received through characteristic</title><link>https://devzone.nordicsemi.com/thread/138617?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 20:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eef9cd9-2664-4fd3-b7ac-4d38bef745ef</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Most likely the problem is at the sending side where you might be setting the default size of the message to 20, instead of adjusting it based on your string size. Just guessing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>