This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 How to receive the time with NTP server ?

Hi.

I'm pretty new with SEGGER Embedded Studio and with nRF9160 dk.

I would to receive time with NTP serveur but I'm lost.

I don't know what to use. if it is better to use this sample : https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/ntp/src/main.c or the date_time librairy.

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 : "undefined reference to 'sntp_init'" in the date_time.c

I hope than someone can help

Sorry for my bad English

Best Regards

Zita

Related