<?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>How to change the data length of BLE notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10277/how-to-change-the-data-length-of-ble-notification</link><description>The maximum data length of a characteristic is 9, and I use the follow function to send the notification to a client 
 uint32_t dxs_send(dr_ble_dxs_t * p_dxs, uint8_t * p_data, uint16_t length)
{
	uint32_t ret_code;
	
	ble_gatts_hvx_params_t hvx_params;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2015 11:03:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10277/how-to-change-the-data-length-of-ble-notification" /><item><title>RE: How to change the data length of BLE notification</title><link>https://devzone.nordicsemi.com/thread/38143?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 11:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf16f0f-1852-4ae8-ad85-ae68aa4016bc</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I want to provide basically the same answer as shibshab provided, with little more specifics. This is how the length parameters are presented in the BLE examples in the nRF51 SDK:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;attr.max_len

attr.init_len

attr_md.vlen
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which define the maximum length for the characteristic, initial length, and if the characteristic should have variable length or not. Modify these three as needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the data length of BLE notification</title><link>https://devzone.nordicsemi.com/thread/38144?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 07:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b1c2863-3b0a-425a-afb6-b2793b5bc8a2</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;In ATT, an attribute can have either fixed or variable length. This implies that the client you are sending notifications to need to have configured the characteristic value attribute with variable length.&lt;/p&gt;
&lt;p&gt;When you create the characteristic of which you are sending the value, make sure you set the property Variable Length to 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>