<?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 many packets will be sent at the next connection interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97380/how-many-packets-will-be-sent-at-the-next-connection-interval</link><description>How to determine how many packets will be sent at the next connection interval? When nus+libuarte sends a large amount of data, can nus send out the data received by libuarte at each connection interval. sdk17.1 nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Mar 2023 12:54:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97380/how-many-packets-will-be-sent-at-the-next-connection-interval" /><item><title>RE: How many packets will be sent at the next connection interval</title><link>https://devzone.nordicsemi.com/thread/413820?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 12:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b94768-73aa-446b-80a0-1907e0a0f49d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, there is no API for this. The application would need to keep track&amp;nbsp;of this itself. From&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=5_7_3_1_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=5_7_3_1_2_4_2_4#ga313fe43c2e93267da668572e885945db&lt;/a&gt;&amp;nbsp;we have:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The application can keep track of the available queue element count for notifications by following the procedure below:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Store initial queue element count in a variable.&lt;/li&gt;
&lt;li&gt;Decrement the variable, which stores the currently available queue element count, by one when a call to this function returns&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group__nrf__error.html#ga7e6367efeaac363d8cf024940b4ec123"&gt;NRF_SUCCESS&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Increment the variable, which stores the current available queue element count, by the count variable in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_s___e_n_u_m_e_r_a_t_i_o_n_s.html#ggae537647902af1b05c1e32f12d6b401c7afab96bfa9918017082235f7664919f9d"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;event.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>