<?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>nRF52840 SDK16 s140 - Disable notifications when peer is disconnected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68056/nrf52840-sdk16-s140---disable-notifications-when-peer-is-disconnected</link><description>Hi everyone, 
 How could I disable notifications from a characteristic when the peer is get disconnected from the the peripheral? My problem is that when notification are enabled and a disconnection occurs then notifications remains enabled. This leads</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Nov 2020 14:38:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68056/nrf52840-sdk16-s140---disable-notifications-when-peer-is-disconnected" /><item><title>RE: nRF52840 SDK16 s140 - Disable notifications when peer is disconnected</title><link>https://devzone.nordicsemi.com/thread/278818?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 14:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779b776e-9e3e-4867-bee7-061ea9788119</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It is the central that controls the CCCD, always. You can&amp;#39;t control this from the peripheral&amp;#39;s application. The only thing the peripheral can do is to store the state of the CCCD between the connections&amp;nbsp;&lt;strong&gt;if&lt;/strong&gt; they are bonded.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can of course disable bonding, but I assume there is a reason why you are using it in the first place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Why do you need to unset the CCCD state?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 - Disable notifications when peer is disconnected</title><link>https://devzone.nordicsemi.com/thread/278797?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 13:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14b43211-b138-423d-a884-f5783fdd151d</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/68056/nrf52840-sdk16-s140---disable-notifications-when-peer-is-disconnected/278765#278765"]Is your peripheral using bonding?&amp;nbsp;[/quote]
&lt;p&gt;Yes&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/68056/nrf52840-sdk16-s140---disable-notifications-when-peer-is-disconnected/278765#278765"]Perhaps you can stop the sending of notifications from the application if that is what you want[/quote]
&lt;p&gt;Yes I can do that (it was my first thought), but I am wondering if it was more elegant to unset the CCCD value after a disconnection event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 - Disable notifications when peer is disconnected</title><link>https://devzone.nordicsemi.com/thread/278765?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 11:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:555ca8cb-4827-4aea-805e-7de25dc0bd1f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Nick,&lt;/p&gt;
&lt;p&gt;Is your peripheral using bonding?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Devices that are bonded should store the CCCD state for the link between connections. This comes from the BLE specification. Is it an issue that it does? If so, it is the application that chooses whether or not to send any notifications. Perhaps you can stop the sending of notifications from the application if that is what you want?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>