<?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>Update characteristic every 1 second with notification while CI set to 3 seconds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17547/update-characteristic-every-1-second-with-notification-while-ci-set-to-3-seconds</link><description>Hi, 
 i update my characteristic every 1 second with a new value. the notification is set for the characteristic and it will notify my phone about the new value.
at the same time i set the connection interval to between 3 seconds to 3.5 seconds. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Nov 2016 14:01:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17547/update-characteristic-every-1-second-with-notification-while-ci-set-to-3-seconds" /><item><title>RE: Update characteristic every 1 second with notification while CI set to 3 seconds</title><link>https://devzone.nordicsemi.com/thread/67465?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 14:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aed6d1c0-4efc-4ff8-8eaa-8b4d42c54635</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you mean by that you are updating your characteristic value. I&amp;#39;m guessing that you are just sending notifications by calling sd_ble_gatts_hvx(), and that you are not calling sd_ble_gatts_value_set().&lt;/p&gt;
&lt;p&gt;Every time sd_ble_gatts_hvx() is called and returns NRF_SUCCESS the notification will be put into a buffer and sent in the next &lt;strong&gt;available&lt;/strong&gt; connection interval. If there is no buffer available it will return BLE_ERROR_NO_TX_PACKETS, which means that the notification will not be sent, and you must retry at a later point in time. So if you have buffered 3 notifications these will all be sent, not only the last one.&lt;/p&gt;
&lt;p&gt;The central device dictates the CI, the only thing the peripheral can do is to send a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___c_p_u___m_s_c.html?cp=3_6_2_1_0_2_1_3_7"&gt;CPU request&lt;/a&gt;, then it&amp;#39;s up the central to accept or reject this request. Also, at least on Android you can request connection priority with &lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#requestConnectionPriority(int)"&gt;this&lt;/a&gt; API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>