<?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>Changing characteristic&amp;#39;s length after initial declaration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26292/changing-characteristic-s-length-after-initial-declaration</link><description>Hi everyone, 
 I wanted to know if it&amp;#39;s possible to change the length of a characteristic&amp;#39;s value after it has been put in the attribute table. Reading some other answers in this zone, I found it was possible to change a characteristic&amp;#39;s value after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2017 22:46:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26292/changing-characteristic-s-length-after-initial-declaration" /><item><title>RE: Changing characteristic's length after initial declaration</title><link>https://devzone.nordicsemi.com/thread/103491?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 22:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd574ee7-82f0-446b-9357-449e1683ebcb</guid><dc:creator>Jos&amp;#233; Villanueva</dc:creator><description>&lt;p&gt;Hi RK, at first I noticed the same but I didn&amp;#39;t know how to do that. I was searching for a specific function to do that for me because I could not access to this attribute but I didn&amp;#39;t find one in any of the library files. Then I realized the way to do that was setting &lt;code&gt;vlen = 1&lt;/code&gt;, which allowed me to have a variable length value for my characteristic so I could write as most the number of bytes defined in &lt;code&gt;max_len&lt;/code&gt; and read just the bytes desired in my application.
Thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing characteristic's length after initial declaration</title><link>https://devzone.nordicsemi.com/thread/103490?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 22:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162eaff6-d6ad-4649-a7e5-a846171fc622</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;well yes - that&amp;#39;s why there&amp;#39;s a max_len and an initial len. The first is how much space to reserve, the second is how long the characteristic value currently is. You can&amp;#39;t change the first, you can change the second on any and every update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>