Hi All,
i have implemented peripheral_cts_client example
but i want to read value once from nrf_connect_app(cts server) then cts has to maintain the time and update it
how can i do this ?
Regards
Tushar
Hi!
I should mention first that time keeping based on something like the RTC will be hard to keep accurate, especially long term. If you are fine with like 21.6 second drift every day, but it gets synced every so often to compensate then its OK, though you should sync. If you let that run for 1 year without syncing it will drift to be a few hours off. Take a look here. And note that in System OFF mode the RTC is off.
We do have some unofficial examples on how this can be done though.
For an example on how you can keep time using nRF5 SDK, see here.
For an example on how you can keep time using nRF Connect SDK, see here. And here is another.
Best regards,
Elfving
Hi!
I should mention first that time keeping based on something like the RTC will be hard to keep accurate, especially long term. If you are fine with like 21.6 second drift every day, but it gets synced every so often to compensate then its OK, though you should sync. If you let that run for 1 year without syncing it will drift to be a few hours off. Take a look here. And note that in System OFF mode the RTC is off.
We do have some unofficial examples on how this can be done though.
For an example on how you can keep time using nRF5 SDK, see here.
For an example on how you can keep time using nRF Connect SDK, see here. And here is another.
Best regards,
Elfving