<?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>DLE (data length extension) and max att_mtu function to application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48156/dle-data-length-extension-and-max-att_mtu-function-to-application</link><description>Hi, 
 I used sdk 15.2.0 version, I refer to the ATT_MTU Throughput Example to modify the Nordic UART Service (NUS) Application example. 
 Now I have some questions: 
 1. How could I check my program is turn on/off DLE or ATT_MTU function? 
 2. How could</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 01:10:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48156/dle-data-length-extension-and-max-att_mtu-function-to-application" /><item><title>RE: DLE (data length extension) and max att_mtu function to application</title><link>https://devzone.nordicsemi.com/thread/191898?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 01:10:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58bac7d4-dbcb-48aa-9cf2-b9749265138f</guid><dc:creator>CFF.K</dc:creator><description>&lt;p&gt;Hi Kenneth:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you help me something to figure out these questions?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DLE (data length extension) and max att_mtu function to application</title><link>https://devzone.nordicsemi.com/thread/191222?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 06:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f586c79-1676-433d-ae89-08975d30bec5</guid><dc:creator>CFF.K</dc:creator><description>&lt;p&gt;Hi Kenneth:&lt;/p&gt;
&lt;p&gt;sorry, I really don&amp;#39;t know which do you answer. I know you support code, but I don&amp;#39;t know what relates with my question.&lt;/p&gt;
&lt;p&gt;Maybe I&amp;#39;m not smart, If my question isn&amp;#39;t clear, please tell me. Could you mark the&amp;nbsp;number of the question&amp;nbsp;when you answer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DLE (data length extension) and max att_mtu function to application</title><link>https://devzone.nordicsemi.com/thread/191073?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 11:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:630415e2-ddb0-411a-906a-802b353b3f2f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Many of the examples you can find in the nRF5 SDK have the following line of code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, gatt_evt_handler);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can then get information about the supported lengths in the callback handler:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/** @brief Function for handling events from the GATT library. */
void gatt_evt_handler(nrf_ble_gatt_t * p_gatt, nrf_ble_gatt_evt_t const * p_evt)
{
    if ((m_conn_handle == p_evt-&amp;gt;conn_handle) &amp;amp;&amp;amp; (p_evt-&amp;gt;evt_id == NRF_BLE_GATT_EVT_ATT_MTU_UPDATED))
    {
        m_ble_nus_max_data_len = p_evt-&amp;gt;params.att_mtu_effective - OPCODE_LENGTH - HANDLE_LENGTH;
        NRF_LOG_INFO(&amp;quot;Data len is set to 0x%X(%d)&amp;quot;, m_ble_nus_max_data_len, m_ble_nus_max_data_len);
    }
    NRF_LOG_DEBUG(&amp;quot;ATT MTU exchange completed. central 0x%x peripheral 0x%x&amp;quot;,
                  p_gatt-&amp;gt;att_mtu_desired_central,
                  p_gatt-&amp;gt;att_mtu_desired_periph);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>