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

Parents Reply
  • Hi,

     

    Zita25 said:

    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.

    It seems that you only have included the library once, so that should be OK.

    Did you add the "CONFIG_SNTP=y" to your prj.conf file, and re-imported the SLM project in segger embedded studio?

     

    If yes, could you please post the whole build log?

     

    Kind regards,

    Håkon

Children
Related