<?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>Any possible to write value to CCCD from itself?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2328/any-possible-to-write-value-to-cccd-from-itself</link><description>Hi, I&amp;#39;m a ble developer using nrf51822.
It is a wierd question,
 Is this any possible to write value to one characteristic&amp;#39;s CCCD value from itself(device)? 
 This is my situation:
I&amp;#39;m implement an higher layer protocol between mobile and ble device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Apr 2014 01:21:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2328/any-possible-to-write-value-to-cccd-from-itself" /><item><title>RE: Any possible to write value to CCCD from itself?</title><link>https://devzone.nordicsemi.com/thread/9602?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2014 01:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b470fb-3e85-431e-a2fb-cae77cf3b410</guid><dc:creator>Scarlet</dc:creator><description>&lt;p&gt;Thanks your information :D&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Any possible to write value to CCCD from itself?</title><link>https://devzone.nordicsemi.com/thread/9601?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2014 07:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2a8e617-d4a3-4ba9-badb-f651f6b83def</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi Scarlet,&lt;/p&gt;
&lt;p&gt;If you&amp;#39;r mobile is an iOS system, then you are required to enable the CCCD&amp;#39;s before the BLE device starts notifying them, because if you don&amp;#39;t enable them the iOS device does not know if it should forward the notifications to the application.
&lt;a href="https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/translated_content/CBPeripheral.html#//apple_ref/occ/instm/CBPeripheral/setNotifyValue:forCharacteristic:"&gt;developer.apple.com/.../CBPeripheral.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The same thing looks like applies for Android &lt;a href="http://developer.android.com/guide/topics/connectivity/bluetooth-le.html#notification"&gt;developer.android.com/.../bluetooth-le.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;another solution is to use the GATT Client to send write commands/requests instead of sending Notifications if you don&amp;#39;t want to use the CCCD.&lt;/p&gt;
&lt;p&gt;By using the bond manger and bonding to the device you want to connect to, you don&amp;#39;t have to bother that much by setting the CCCD.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00103.html"&gt;devzone.nordicsemi.com/.../a00103.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>