![]() |
nRF Connect SDK API 3.3.99
|
| int ntn_location_set | ( | double | latitude, |
| double | longitude, | ||
| float | altitude, | ||
| uint32_t | validity ) |
#include <include/modem/ntn.h>
Set location to the modem.
This function is used to set the location to the modem for NTN usage.
| [in] | latitude | Latitude in degrees. |
| [in] | longitude | Longitude in degrees. |
| [in] | altitude | Altitude in meters. |
| [in] | validity | Location validity in seconds. 0 means infinite validity. |
| 0 | Location was set successfully. |
| -EFAULT | AT command could not be sent to the modem. |