<?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 know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16271/how-to-know-when-a-gatt-client-characteristic-is-updated</link><description>Hi, 
 I use the Current Time Service to get back the time from a smartphone to have a real time clock with a timer.
On the current time service example, the value is read when we press the button. 
 On my application, I want to be notified when the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Sep 2016 15:45:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16271/how-to-know-when-a-gatt-client-characteristic-is-updated" /><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62207?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 15:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef878b4d-a611-4f1a-8091-9c2ce7041937</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;Thank you Petter. I had created the same server setup yesterday. Take a little bit of time for me to understand notification on client side but now, everything is clear for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62204?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 11:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14973a28-df1a-4dda-a742-7a22ac8e8b1d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/cts_5F00_central_5F00_notify.bin"&gt;This&lt;/a&gt; server setup should send notifications when updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62206?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2016 11:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f24a6f-cb78-4879-831e-e4c1959af019</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I actually don&amp;#39;t know the answer to that- having never used the MCP. Technically any CTS peripheral should have the time characteristic as notify, it&amp;#39;s mandatory, however if the MCP is just for testing purposes with the examples in the SDK, perhaps it isn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;Can you use one of the little btle things runs on a phone? I know LIghtblue can pretend to be various sorts of peripheral, CTS is probably one of them and I&amp;#39;d assume they wrote it to be notifyable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62205?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2016 09:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c201bb03-b712-4b99-8e88-bdf9d33692ba</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;I use the server setup from cts example for MCP to test my App. It seems that the characteristic is not configured as Notify. I think that I have to create my own server setup. Is that right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62203?ContentTypeID=1</link><pubDate>Sat, 10 Sep 2016 01:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b841ca1-5ae4-4455-be9a-5e4d6469bcd3</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;well do you know that your server properly supports notifications? Is it sending them out? Have you written the CCCD with the notification/indication value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62202?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 23:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fc26b36-edcb-4d60-9dcc-f99a964fb3a0</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;Following advises, I have tried to use the alert notification example without success.
I added :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CCCD configuration to enable notification for the characteristic.&lt;/li&gt;
&lt;li&gt;BLE_GATTC_EVT_HVX event to the on_ble_event&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;but nothing happen in the client side when I update the value in the server.&lt;/p&gt;
&lt;p&gt;Help please&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62201?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 07:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b143777d-e795-4cc2-9edd-805a08f9567c</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;Hi RK, thanks for your answer.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand very well the service initialization on the Current Time Service client code.
It seems that everything is managed in the db_discover_evt_handler(ble_db_discovery_evt_t * p_evt) and that I can get back cccd handle here :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.uuid ==
            BLE_UUID_CURRENT_TIME_CHAR)
        {
            // Found Current Time characteristic. Store CCCD and value handle and break.
            mp_ble_cts-&amp;gt;cts_cccd_handle =
                p_evt-&amp;gt;params.discovered_db.charateristics[i].cccd_handle;
            mp_ble_cts-&amp;gt;current_time_handle =
                p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.handle_value;
            break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do I have to add a BLE CTS event type when I get back notification information from the DB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know when a GATT client characteristic is updated</title><link>https://devzone.nordicsemi.com/thread/62200?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 23:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8940a0fe-fb93-4d81-84ed-c5edf16d5647</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;If you want to notify a peer of changes to the value of a characteristic then you make the characteristic notifyable or indicatable. The peer then subscribes to the characteristic and you send out notifications or indications each time you make a change.&lt;/p&gt;
&lt;p&gt;If you look at the &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.current_time.xml"&gt;description of the current time service&lt;/a&gt; you&amp;#39;ll see the Current Time characteristic is notifyable (and it&amp;#39;s mandatory to be).&lt;/p&gt;
&lt;p&gt;As far as I can see, the Current Time Service client code (ble_cts_c) doesn&amp;#39;t have any code to support subscribing to the characteristic, so you&amp;#39;ll have to write your own/add your own. If you look at the code for the ble_hrs_c service however, that does show how to subscribe to notifications, you have to write to the &amp;#39;cccd&amp;#39; characteristic to enable and disable them, then handle the resultant messages.&lt;/p&gt;
&lt;p&gt;So you need to integrate that subscription and handling code into the Current Time Service code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>