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

nrf9160: How to make time() return correct time?

Hi,

What is the proper way to set "real time" in nRF9160 with nRF Connect SDK?

I want the function time() from the file time.h to return the correct time.

I know that I can read the correct time from the modem with +CCLK when connected to the network.

But how do I "plug" the correct time into the system so time() works as expected?

BR / Bjorn

Parents Reply Children
No Data
Related