<?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>indication issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19980/indication-issue</link><description>Hi all, 
 someone can please explain to me how works the indication? 
 How can i read the value of cccd in the APP?My problem is understand if the APP is ready to receive the indication. i would like read the cccd value berfore to send my logs. 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Feb 2017 14:28:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19980/indication-issue" /><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77754?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 14:28:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996b3f30-c4cb-4f1a-94fb-c46d3acefd7a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Looks like you are using it correctly. Are you sure you are using the correct connection handle and attribute handle? Are you checking the returned error code of sd_ble_gatts_value_get()? Is it 0x00000000, NRF_SUCCESS? Are you sure that CCCD value is not 0x0000? What is the len of the returned value? Is gatts_value.len 2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77752?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 14:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7b46c3-ec84-4e1c-990c-55b5c6afc1ae</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;if i understand correctly the sd_ble_gatts_value_get() allows me to understand if the app is available to receive the indication, but if i use it the value of ccd is always 0. Maybe, i wrong pass the parameter in the function.  This is my code:&lt;/p&gt;
&lt;p&gt;void DataLog_SVC_SendEvent(uint8_t typeLog, uint8_t craving, uint32_t timestamp,uint8_t crc)
{&lt;/p&gt;
&lt;p&gt;ble_data_log_service_user_log_t data;
ble_gatts_value_t gatts_value;
ble_data_log_service_evt_type_t evt_type;&lt;/p&gt;
&lt;p&gt;uint32_t err_code;&lt;/p&gt;
&lt;p&gt;data.flags=typeLog;&lt;/p&gt;
&lt;p&gt;data.craving = craving;&lt;/p&gt;
&lt;p&gt;data.time = timestamp;&lt;/p&gt;
&lt;p&gt;data.crc_8 = crc;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gatts_value_get(m_datalog.conn_handle,m_datalog.user_log_handles.cccd_handle,&amp;amp;gatts_value);&lt;/p&gt;
&lt;p&gt;//   ble_srv_is_indication_enabled(m_datalog.user_log_handles.cccd_handle);&lt;/p&gt;
&lt;p&gt;err_code = ble_data_log_service_user_log_send(&amp;amp;m_datalog,&amp;amp;data);&lt;/p&gt;
&lt;p&gt;//   APP_ERROR_CHECK(err_code);
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77751?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02b5bc21-a83e-4716-ab52-86ad7bd7de37</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes. I know. What is the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77750?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:544f15bd-da5f-4b89-ac43-0efacc4e6967</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;sd_ble_gatts_value_get() is the third option of your link. &amp;quot; 3. Read the value of the CCCD using sd_ble_gatts_value_get(), and check whether it is 0x0001 (Notification) or 0x0002 (Indication).&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77753?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 12:12:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8664ad-42f2-440b-a1be-69376cecb4df</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What is that you don&amp;#39;t understand with sd_ble_gatts_value_get()? Please be more specific.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77749?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 11:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b96732d-d4ff-48ac-928b-fa67ddab812a</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;i need to send my log when the app is connect to device. My log is send with indication because i need to know is all is received from app.
But i need know if the cccd is enable from client, i don&amp;#39;t understand how the sd_ble_gatts_value_get() works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: indication issue</title><link>https://devzone.nordicsemi.com/thread/77748?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 11:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0373db7-2363-4dbe-a9d2-0c7f72ce2f58</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You need to be more specific. What is it that you want explained?&lt;/p&gt;
&lt;p&gt;You second question seems to be answered &lt;a href="https://devzone.nordicsemi.com/question/4555/how-to-know-if-the-notificationindication-of-a-characteristic-is-enabled/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>