<?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>Setting the RTC on the Client to the Server time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12022/setting-the-rtc-on-the-client-to-the-server-time</link><description>Hi 
 I can get the current time from the server using the time service characteristic. Which function should I use to set the RTC clock on the nrf 51 to the current time obtained from the server so that the timer starts from that point.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Feb 2016 02:15:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12022/setting-the-rtc-on-the-client-to-the-server-time" /><item><title>RE: Setting the RTC on the Client to the Server time</title><link>https://devzone.nordicsemi.com/thread/45493?ContentTypeID=1</link><pubDate>Sun, 21 Feb 2016 02:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58054dc5-cdfe-47c0-9dc9-3d1e690a461e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;this has nothing to do with the counter register on the RTC, and it&amp;#39;s not read only anyway, although it may be in use by something like the app_timer module. But it&amp;#39;s really irrelevant anyway, the RTC will just give you regular ticks, you need to implement the clock functions by yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the RTC on the Client to the Server time</title><link>https://devzone.nordicsemi.com/thread/45492?ContentTypeID=1</link><pubDate>Sat, 20 Feb 2016 10:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffab7655-355b-4a5f-a9b5-167b27401473</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;But the COUNTER register is read only for the RTC right? Thats what I had read. Please correct me If I am wrong here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the RTC on the Client to the Server time</title><link>https://devzone.nordicsemi.com/thread/45491?ContentTypeID=1</link><pubDate>Sat, 20 Feb 2016 09:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40088087-293e-4a55-91d2-35a8a981a7dc</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;There is no clock on the nrf51 which has a notion of &amp;#39;current time&amp;#39;. The RTC is just a counter. if you want to use it as a clock you have to get it to call you at regular time intervals (eg one second) and then you count ticks and turn that into a time.&lt;/p&gt;
&lt;p&gt;So when you get the current time from the server, you set your count to that time and start counting from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>