<?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>User description descriptor write event missing UUID and data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54858/user-description-descriptor-write-event-missing-uuid-and-data</link><description>Hello - 
 
 I am working with the nRF52840-DK board and SDK 15.3.0. In my service, deployed on the nRF52840, I have a characteristic user description descriptor that is both readable and writable. The characteristic wr_aux field is set to 1. The client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 06:44:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54858/user-description-descriptor-write-event-missing-uuid-and-data" /><item><title>RE: User description descriptor write event missing UUID and data</title><link>https://devzone.nordicsemi.com/thread/222217?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 06:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af0c2813-56e5-4c4d-b066-45c17bfa89a2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Great to hear that. Thanks for sharing. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User description descriptor write event missing UUID and data</title><link>https://devzone.nordicsemi.com/thread/222191?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 23:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c60809c9-b981-4cbc-83d4-35842c4d5214</guid><dc:creator>bfriedk1</dc:creator><description>&lt;p&gt;Hello -&lt;/p&gt;
&lt;p&gt;After a little more digging, I was able to find a configuration setup that works. It&amp;nbsp;still seems necessary for the p_char_user_desc field to point at a non-NULL buffer. But if I set the is_defered_read and is_defered_write fields fields to 0, the SDK triggers a&amp;nbsp;BLE_GATTS_EVT_WRITE event, where I can capture the data written. Here is the updated user descriptor initialization code that works for me:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_add_char_params_t add_char_params;
ble_add_char_user_desc_t add_user_desc;
uint8_t buffer[64];

add_user_desc.max_size = 64;
add_user_desc.size = 0;
add_user_desc.p_char_user_desc = buffer;
add_user_desc.is_var_len = 1;
add_user_desc.is_defered_read = 0;
add_user_desc.is_defered_write = 0;
add_user_desc.is_value_user = 1;
add_user_desc.char_props.read = 1;
add_user_desc.char_props.write = 1;
add_user_desc.char_props.write_wo_resp = 0;
add_user_desc.char_props.notify= 0;
add_user_desc.char_props.indicate= 0;
add_user_desc.read_access = SEC_OPEN;
add_user_desc.write_access = SEC_OPEN.
add_char_params.p_user_descr = &amp;amp;add_user_desc;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that the&amp;nbsp;behavior is different compared to characteristics, where I can set the p_init_value field to NULL and the defered fields to 1.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User description descriptor write event missing UUID and data</title><link>https://devzone.nordicsemi.com/thread/222142?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 14:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09c6e34-9db5-4819-a496-f6c8eb8c73c0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please see this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt;BLE Characteristics-a-beginners-tutorial&lt;/a&gt;. It can help you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>