<?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>characteristic_add returns ERROR 12 [NRF_ERROR_DATA_SIZE]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61370/characteristic_add-returns-error-12-nrf_error_data_size</link><description>Hello, my code was working just find then I tried to add the user description value to my characteristic. In the example below I had set it to &amp;quot;Test&amp;quot; for now. Once I did this I started to get ERROR code 12. Any what idea what am I doing wrong? Btw this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 17 May 2020 00:43:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61370/characteristic_add-returns-error-12-nrf_error_data_size" /><item><title>RE: characteristic_add returns ERROR 12 [NRF_ERROR_DATA_SIZE]</title><link>https://devzone.nordicsemi.com/thread/250305?ContentTypeID=1</link><pubDate>Sun, 17 May 2020 00:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec355cfe-2915-4542-b5b6-574bf0aa8a41</guid><dc:creator>moose</dc:creator><description>&lt;p&gt;It turns out this error code (12) was caused because I did not set the max size member. Once I did this, I am not getting error code 12 anymore. However, I am now getting error code 7. I&amp;nbsp;posted a new ticket for this since it is most likely a different issue. Here is the link&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61476/characteristic_add-returns-error-7-nrf_error_invalid_param"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/61476/characteristic_add-returns-error-7-nrf_error_invalid_param&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: characteristic_add returns ERROR 12 [NRF_ERROR_DATA_SIZE]</title><link>https://devzone.nordicsemi.com/thread/250183?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 12:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0491b77-f95c-4499-80cd-dd524d96bf42</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of SDK are you using?&lt;/p&gt;
&lt;p&gt;Could you step into the&amp;nbsp;characteristic_add() function and check the error is returned by&amp;nbsp;&lt;a title="sd_ble_gatts_characteristic_add" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=4_6_3_1_2_4_2_1#ga9ee07ea4b96dcca1537b01ff9a7692ba"&gt;sd_ble_gatts_characteristic_add&lt;/a&gt;&amp;nbsp;or not? If so,&amp;nbsp;&lt;a title="Data size exceeds limit." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v0.9.0/group__nrf__error.html#ga4c61f2b54667506e90cc296721b2e658"&gt;NRF_ERROR_DATA_SIZE&lt;/a&gt;&amp;nbsp;indicates&amp;nbsp;&lt;span&gt;Invalid data size(s) supplied, attribute lengths are restricted by&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_t_t_s___a_t_t_r___l_e_n_s___m_a_x.html"&gt;Maximum attribute lengths&lt;/a&gt;&lt;span&gt;. You could try to give the value to .&lt;a title="max_size" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/structble__add__char__user__desc__t.html?cp=7_1_6_3_37_7_5#a4cf28d8c2988f08ac89c50b5fd43cd6f"&gt;ble_add_char_user_desc_t::max_size&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>