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?
What product are you referring to?
any workarounds are welcome as well. I suppose that using an MQTT protocol to get date is ok too but seems unnecessary. Still, if someone has an example of how to code that, it would be useful to me.
There is a possible workaround here which sets up a socket using at commands but in a C app. Still looking for other ideas however. github.com/.../main.c
also not sure what these commands are. Is there a command reference? Rallare ? I know these are early days
int at_socket_fd = socket(AF_LTE, 0, NPROTO_AT);
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