<?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>S130 long characteristic values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16016/s130-long-characteristic-values</link><description>Hi, 
 I&amp;#39;m facing a little problem with custom service characteristic. I&amp;#39;ve set char settings as follows 
 attr_char_value.init_len = sizeof(uint8_t);
attr_char_value.init_offs = 0;
attr_char_value.max_len = 5;
attr_char_value.p_value = NULL;
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Sep 2016 12:14:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16016/s130-long-characteristic-values" /><item><title>RE: S130 long characteristic values</title><link>https://devzone.nordicsemi.com/thread/61090?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 12:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899d4016-ac10-4f98-8081-857ca03b3b83</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I see.&lt;/p&gt;
&lt;p&gt;When you use BLE_GATTS_VLOC_USER the attribute Value is located in user memory. This requires you to maintain a valid buffer through the lifetime of the attribute, since the stack will read and write directly to the memory using the pointer provided in the APIs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 long characteristic values</title><link>https://devzone.nordicsemi.com/thread/61089?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 11:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:630213b2-5c35-4f64-9073-faa3d2e951bf</guid><dc:creator>wizath</dc:creator><description>&lt;p&gt;The main problem was BLE_GATTS_VLOC_USER setting. When changed to BLE_GATTS_VLOC_STACK everything works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 long characteristic values</title><link>https://devzone.nordicsemi.com/thread/61086?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2016 11:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee86731-16f2-4ed7-8bc4-7c3890d0baf8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It should work. As long as you don&amp;#39;t use a len larger than 5. Are you checking the returned error code of sd_ble_gatts_value_set()? Is it 0x00000000 (NRF_SUCCESS)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 long characteristic values</title><link>https://devzone.nordicsemi.com/thread/61088?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 21:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce020021-72e4-4b12-8728-f31758d59da3</guid><dc:creator>wizath</dc:creator><description>&lt;p&gt;len is simple uint8 value and data is uint8_t *. i&amp;#39;m checking it with logging and everything is fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 long characteristic values</title><link>https://devzone.nordicsemi.com/thread/61087?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 14:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91abb18b-ce4c-4c47-b6b1-35d007f5a72e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Strange. What are the values of len and data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>