<?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>Current Time Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66169/current-time-service</link><description>Hi, 
 For our application we need time and date updates from a mobile phone. Bluetooth has a standard Current Time Service for this. However I can&amp;#39;t find this service in the Nordic SDK or examples. I only find the GATT Client implementation of this service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Aug 2021 02:19:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66169/current-time-service" /><item><title>RE: Current Time Service</title><link>https://devzone.nordicsemi.com/thread/324996?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 02:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b12be41-c87c-4024-9fcf-f1f48968c8b3</guid><dc:creator>CM</dc:creator><description>&lt;p&gt;I&amp;#39;ve created a patch for the NRF5 SDK to add support for local time information. The example included in the SDK will allow you to read from the current time service, but doesn&amp;#39;t include information about the timezone, which you likely need.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/ColeMurray/df341c8eba0c12465057b9349a9f86ae"&gt;gist.github.com/.../df341c8eba0c12465057b9349a9f86ae&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current Time Service</title><link>https://devzone.nordicsemi.com/thread/270970?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 06:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9b805c-f81c-48f1-a5cb-6068af429ce4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Gaston&lt;/p&gt;
&lt;p&gt;From the CTS specification, &lt;a href="https://www.bluetooth.com/specifications/gatt/"&gt;downloadable from here&lt;/a&gt;. &amp;quot;The term &amp;quot;server device&amp;quot; in this specification refers to the device that exposes date and time information by implementing this specification. A device that uses the exposed information is referred to as a &amp;quot;client device&amp;quot;.&amp;quot;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there&amp;#39;s a way for the CTS client to write current time data to a server using the Current Time Service.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current Time Service</title><link>https://devzone.nordicsemi.com/thread/270848?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 12:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d8ec7a-2324-4b64-8951-7fc94ee2e24c</guid><dc:creator>Gueston</dc:creator><description>&lt;p&gt;Hi, I understand this. But the alternative could also be to have the CTS server on the nRF, and an App on the mobile phone writes the timestamps to this service, like with any other service. Of course the device itself has less control, but in most cases the App is proprietary anyway so it can write those values. I think that&amp;#39;s much easier to implement because then on the App no GATT Services have to be made. Or is this not the right approach?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current Time Service</title><link>https://devzone.nordicsemi.com/thread/270845?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 12:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68cff005-fe25-4dcc-88ea-eb96220a0c70</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_cts_c.html"&gt;The Current Time Application example&lt;/a&gt; (ble_app_cts_c) demonstrates how the CTS client is used to retrieve the current time from a CTS server (typically a mobile phone). A Current Time Service server will not be able to trigger a read from a client, as the server will only be&amp;nbsp;&lt;strong&gt;serving&amp;nbsp;&lt;/strong&gt;the client, and not the other way around. That is why we only have the Current Time Service Client in our SDK. If the nRF was the server in this case, the client application would ask for the time, and the nRF would have to provide it. The client lets you trigger a read of the current time from the connected server (mobile phone or similiar).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>