NRF52840 date time example

So, I am working on nrf52840 with nrf connect sdk and I want to get date and time in my project, I found a library in nrf connect sdk ->libraries->other libraries->date-time, I tried to add the configuration in my prj.conf, but an error occur.

Parents Reply
  • Hello Jay_Lin,

    * don't be sorry foor noob questions.* 

    What hardware are you using ?

    If this is only a nordic development kit nrf52840DK ?  (like the picture here)

    If yes, then you can never have date&time  because this board is unable to synchronize with a possible time server present on the internet (or another time source like a cellular network)
    it needs a modem to establish connection to get the real world date & time

    An alternative solution is to connect a gps receiver and obtain time from there.

Children
Related