<?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>UUID compare in CCC function (Zephyr)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82527/uuid-compare-in-ccc-function-zephyr</link><description>Hello, 
 I have created different characteristics with the CCC macro (BT_GATT_CCC) that share the same &amp;quot;Configuration changed callback&amp;quot; function. 
 Inside the function below, i want to compare and find which uuid has enabled notification from client.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Dec 2021 14:45:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82527/uuid-compare-in-ccc-function-zephyr" /><item><title>RE: UUID compare in CCC function (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/344820?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 14:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80afa840-81a0-418a-b3f5-f10c4cce02ca</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Sorry for the late reply. I took a closer look at one of our example applications, i.e. the RCSC example. and it seems you should register the CCCD with different handles like this:&lt;br /&gt; BT_GATT_CCC(rsc_meas_ccc_cfg_changed, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE),&lt;br /&gt;BT_GATT_CCC(ctrl_point_ccc_cfg_changed, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UUID compare in CCC function (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/342558?ContentTypeID=1</link><pubDate>Wed, 08 Dec 2021 14:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85917dd1-e4fc-487d-acf0-bc108dc356ce</guid><dc:creator>Christoffer Brask</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1638972852944v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Strange thing is that type = 0 which is&amp;nbsp;BT_UUID_TYPE_16 and not 2 =&amp;nbsp;BT_UUID_TYPE_128&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UUID compare in CCC function (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/342557?ContentTypeID=1</link><pubDate>Wed, 08 Dec 2021 14:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7059c8ee-79ab-4fbc-8cbb-51e00ea824c8</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, not to familiar with zephyr yet, but trying to answer anyway. When the peer enables notification it writes to the attribute handle for the cccd. This means some where in the stack this must be linked to the rest of the &lt;em&gt;&lt;span&gt;&lt;/span&gt; &lt;/em&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;bt_gatt_attr&lt;/span&gt;&lt;/span&gt;&lt;/code&gt; struct. I would guess that is happening in the application layer, so you will likely have to linke this in the application yourself. As a check, what information does this struct contain if you halt the code and check?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>