I am trying to do things like
- get the current date and/or time
- configure a socket
- activate a socket
Usually I use commands like
- at+cclk
- at+csdf
- at+ctzu
- nitz
- at+scfg
- at_sgact
Am I missing something?
I am trying to do things like
Usually I use commands like
Am I missing something?
Hi,
We provide a BSD socket library for creation and configuration of sockets for the nRF9160.
As this is a well known and established API, you can technically use any socket example and it should work with nRF9160 (you'll need to register on the network first, which can be done via the LTE link control driver)
Implementing a NTP client might be more what you're after.
I'd recommend having a loot at the AT commands available here:
https://www.nordicsemi.com/DocLib?Product=nRF9160%20Core%20Documentation
Kind regards,
Håkon
provided that your carrier sends network time notifications.
There is no guarantee of that at all!
Even if they do provide it, there is no guarantee of when the notifications will occur.
For a given carrier, it can even vary depending on what type of service you have subscribed to ...
provided that your carrier sends network time notifications.
There is no guarantee of that at all!
Even if they do provide it, there is no guarantee of when the notifications will occur.
For a given carrier, it can even vary depending on what type of service you have subscribed to ...
Mentioning xtime in my former answer does not make sense, as you mention; this cannot be trusted. NTP looks to be the best candidate.
Cheers,
Håkon