<?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>Send data on an notification event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13093/send-data-on-an-notification-event</link><description>hello everybody, 
 I need to send some data on the value attached with the notification: 
 /**@brief Function for adding the notify Level characteristic.
 *
 * @param[in] p_notify notify Service structure.
 * @param[in] p_notify_init Information</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Apr 2016 13:01:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13093/send-data-on-an-notification-event" /><item><title>RE: Send data on an notification event</title><link>https://devzone.nordicsemi.com/thread/49933?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 13:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23475901-d457-4e01-9ab3-9c47c2ce9486</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi mohamed,&lt;/p&gt;
&lt;p&gt;Please set &lt;code&gt;attr_md.vlen = 1;&lt;/code&gt; and you will be able to have variable length not fixed length.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data on an notification event</title><link>https://devzone.nordicsemi.com/thread/49932?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 10:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b4334cc-472b-4fdd-af1e-22082e90aac6</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@HungBui yes, the change in maximum value of max lens will result in maximum integer of characters be sent in one notification, if that was greater than the string I need to send, it will send my string followed by a garbage values I don&amp;#39;t need this, my string is variable and I want to let the maximum length to be set every notification or a way to let it controllable based on string lenght&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send data on an notification event</title><link>https://devzone.nordicsemi.com/thread/49931?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2016 14:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6719b8-5b4d-4c8d-a55e-d96df583d36a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mohamed: What happens if you change the max_len to something else ? Have you checked the return code when you call sd_ble_gatts_hvx() to send notification ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>