<?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>Why is my service cccd_handle number wrong</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28135/why-is-my-service-cccd_handle-number-wrong</link><description>Hello. 
 Nordic Team. 
 I add for ble Service and i select my service notify enable 
 I want receive my service number, but service number is different. 
 Add for my source code and I looking for example PCA10040 HRS service. 
 The development environment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Dec 2017 06:17:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28135/why-is-my-service-cccd_handle-number-wrong" /><item><title>RE: Why is my service cccd_handle number wrong</title><link>https://devzone.nordicsemi.com/thread/111072?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 06:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68002726-911e-4914-9c3d-5b64066ea5fc</guid><dc:creator>kevin.ko</dc:creator><description>&lt;p&gt;My self solved... it&amp;#39;s problem&lt;/p&gt;
&lt;p&gt;example : ble_hrs.h&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BLE_HRS_DEF(_name)                                                                          \
static ble_hrs_t _name;                                                                             \
NRF_SDH_BLE_OBSERVER(_name ## _obs,                                                                 \
                     BLE_HRS_BLE_OBSERVER_PRIO,                                                     \
                     ble_hrs_on_ble_evt, &amp;amp;_name)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Your ble service header source&lt;/p&gt;
&lt;p&gt;source add for #define, static, Observer..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is my service cccd_handle number wrong</title><link>https://devzone.nordicsemi.com/thread/111071?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 10:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daeddabc-4282-4b70-8aef-0594536edce3</guid><dc:creator>kevin.ko</dc:creator><description>&lt;p&gt;more the my question and captures&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/181628/why-is-my-service-cccd_handle-number-difference/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is my service cccd_handle number wrong</title><link>https://devzone.nordicsemi.com/thread/111070?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 08:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cca91f28-630b-419e-8cc2-f6607b2e8d69</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/181628/why-is-my-service-cccd_handle-number-difference/"&gt;Duplicate?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is my service cccd_handle number wrong</title><link>https://devzone.nordicsemi.com/thread/111069?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 06:03:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c12fe8aa-ab8b-477e-8363-1e6d28519e28</guid><dc:creator>kevin.ko</dc:creator><description>&lt;p&gt;Hello, Ketil
NRFConnect App is find ECG Service
Service UUID is here.
I testing Thingy UUID not change ECG UUID.
use on my ECG Base uuid
#define ECG_BASE_UUID                  {{0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}} /**&amp;lt; Used vendor specific UUID. */&lt;/p&gt;
&lt;p&gt;HRS is Notification &amp;#39;on&amp;#39; msg -&amp;gt; Handle is not same&lt;/p&gt;
&lt;p&gt;static void on_write(ble_ecg_t * p_ecg, ble_evt_t const * p_ble_evt)
{
ble_gatts_evt_write_t const * p_evt_write = &amp;amp;p_ble_evt-&amp;gt;evt.gatts_evt.params.write;
NRF_LOG_INFO(&amp;quot;ecg[%s]handle[%d][%d][%d]&amp;quot;,&lt;strong&gt;func&lt;/strong&gt;,p_evt_write-&amp;gt;handle,p_ecg-&amp;gt;ecgdata_handles.cccd_handle,p_ecg-&amp;gt;ecgconf_handles.cccd_handle);
if(p_evt_write-&amp;gt;handle == p_ecg-&amp;gt;ecgdata_handles.cccd_handle)
{
}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why is my service cccd_handle number wrong</title><link>https://devzone.nordicsemi.com/thread/111068?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 08:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:368d3c6f-64e4-4ebf-87dc-dfe852c84bdf</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not sure what you are trying to achieve. Could you specify some more?&lt;/p&gt;
&lt;p&gt;Are you trying to add your own custom service called ecg? Is the problem that it does not show up in nRF Connect?&lt;/p&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>