<?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>How to detect a subscription to a notification?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126898/how-to-detect-a-subscription-to-a-notification</link><description>How can I detect if subscription to a notification has been made on my peripheral in Zephyrf?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Feb 2026 06:01:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126898/how-to-detect-a-subscription-to-a-notification" /><item><title>RE: How to detect a subscription to a notification?</title><link>https://devzone.nordicsemi.com/thread/560735?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2026 06:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bd9bda9-7159-4346-84c3-c71ca71d68cf</guid><dc:creator>Olaf</dc:creator><description>&lt;p&gt;Hi Samruddihi,&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to detect a subscription to a notification?</title><link>https://devzone.nordicsemi.com/thread/560647?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2026 12:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a011ac-ab71-4883-b6ff-b746f65fc6ee</guid><dc:creator>Samruddhi Jadhav</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to detect if a central has subscribed to notifications on the Zephyr-based peripheral, you can use a CCCD callback to see when the client enables notifications. So, you can add a CCC descriptor with a callback when you define your GATT service. That way, whenever the client writes the CCCD, the callback is called. You also should check if the client is subscribed before sending. You can use bt_gatt_is_subscribed() to check if that connection has actually enabled notifications when you want to send a notification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Samruddhi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to detect a subscription to a notification?</title><link>https://devzone.nordicsemi.com/thread/560582?ContentTypeID=1</link><pubDate>Sat, 07 Feb 2026 09:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd22df90-5c2a-4e39-b7ce-5d953ebe27a3</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The callback function gets called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>