<?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>manage two characteristics indications simultaneously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15547/manage-two-characteristics-indications-simultaneously</link><description>I have one characteristic which send data with indications, for each frame sent I wait for acknowledgement on case BLE_GATTS_EVT_HVC : before sending the next data 
 but now I have two characteristics performing the same task, how can I differentiate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2016 10:45:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15547/manage-two-characteristics-indications-simultaneously" /><item><title>RE: manage two characteristics indications simultaneously</title><link>https://devzone.nordicsemi.com/thread/59349?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 10:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db5d237-174b-4677-9ce4-21dad35c6b23</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the structure of your characteristics, you shall have a .value_handle somewhere.
Let&amp;#39;s take the ble_app_uart as an example. The value handles are populated by the service itself, and stored in the global struct:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_nus.rx_handles.value_handle
m_nus.tx_handles.value_handle
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When you then get the event BLE_GATTS_EVT_HVC, you can check the handle in the BLE evt:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (p_ble_evt-&amp;gt;evt.gatts_evt.params.hvc.handle == m_myservice1.my_handle.value_handle) {service1_do_something();}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>