<?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>nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68031/nrf9160-how-to-receive-the-time-with-ntp-server</link><description>Hi. 
 I&amp;#39;m pretty new with SEGGER Embedded Studio and with nRF9160 dk. 
 I would to receive time with NTP serveur but I&amp;#39;m lost. 
 I don&amp;#39;t know what to use. if it is better to use this sample : https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Nov 2020 08:28:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68031/nrf9160-how-to-receive-the-time-with-ntp-server" /><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/279855?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 08:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:878480f3-4448-4623-b861-01807b9fc5a9</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear that!&lt;/p&gt;
&lt;p&gt;I hope you have a nice weekend!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you run into more issues, or have questions, just contact us.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/279757?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 14:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96907790-1079-4930-8355-84ba6319699d</guid><dc:creator>Zita25</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/68031/nrf9160-how-to-receive-the-time-with-ntp-server/279689#279689"]Have you added the date_time.c to your serial_lte_modem/src catalog? If yes, please remove it from this directory, as it is automatically added to your project by setting the prj.conf::CONFIG_DATE_TIME=y.[/quote]
&lt;p&gt;yes, that was the problem &lt;/p&gt;
&lt;p&gt;thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/279689?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 11:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db699347-fe54-4f9a-9819-a95a8ba56edd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Zita,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you added the date_time.c to your serial_lte_modem/src catalog? If yes, please remove it from this directory, as it is automatically added to your project by setting the prj.conf::CONFIG_DATE_TIME=y.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/279630?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 07:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8166073-b3c9-4cb7-aaf1-2ebadb96aa9a</guid><dc:creator>Zita25</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes i had the &amp;quot;CONFIG_SNTP=y&amp;quot; in my prj.conf file,and re-imported the SLM project in segger embedded studio.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Capture_5F00_pb_5F00_de_5F00_log_5F00_nrf9160.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Zita&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/278934?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 08:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55525f6d-b864-434c-8693-325537fa8a01</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="elsal25"]&lt;p&gt;It does not compile perfectly because i have twice the library in my tree and i have trouble understanding what i did or did not to get there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It seems that you only have included the library once, so that should be OK.&lt;/p&gt;
&lt;p&gt;Did you add the &amp;quot;CONFIG_SNTP=y&amp;quot; to your prj.conf file, and re-imported the SLM project in segger embedded studio?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If yes, could you please post the whole build log?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/278816?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 14:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26d23677-b4af-40ad-b22c-525fd4d6f182</guid><dc:creator>Zita25</dc:creator><description>&lt;p&gt;Ok thanks&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It does not compile perfectly because i have twice the library in my tree and i have trouble understanding what i did or did not to get there.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/35411.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I hope you can help me again&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Zita&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 How to receive the time with NTP server ?</title><link>https://devzone.nordicsemi.com/thread/278736?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 09:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60934c84-45a3-4403-9ef1-bab934486ccf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I don&amp;#39;t know what to use. if it is better to use this sample : &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/ntp/src/main.c"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/ntp/src/main.c&lt;/a&gt; or the date_time librairy.[/quote]
&lt;p&gt;&amp;nbsp;This example was written at a time when sntp wasn&amp;#39;t working with nrf9160, so please use sntp now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I tried to import the library in the application serial_lte_modem and modify my configuration files but when i buid i have this error : &amp;quot;undefined reference to &amp;#39;sntp_init&amp;#39;&amp;quot; in the date_time.c[/quote]
&lt;p&gt;&amp;nbsp;Try opening your project configuration file &amp;quot;prj.conf&amp;quot; and adding&amp;nbsp;CONFIG_SNTP=y, then reloading your project (re-import in SES).&lt;/p&gt;
&lt;p&gt;Are you able to build successfully now?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Sorry for my bad English[/quote]
&lt;p&gt;No worries, it was perfectly understandable!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>