#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>
Set your location in the OMA LwM2M Location
object (/6/0).
- The default all resource values of this object are set to 0.
- Parameters
-
[in] | latitude | Latitude (/6/0/0) in degrees. Must be between -90.0 and 90.0. |
[in] | longitude | Longitude (/6/0/1) in degrees. Must be between -180.0 and 180.0. |
[in] | altitude | Altitude (/6/0/2) is meters over sea level. |
[in] | timestamp | Unix timestamp of the current GPS measurement (/6/0/5). Must not be older than the previous timestamp passed to this function. |
[in] | uncertainty | Positioning uncertainty given as a radius in meters (/6/0/3). |
- Return values
-
0 | If the location data has been updated successfully. |
-EINVAL | If at least one input argument is incorrect. |
-ENOENT | If the object is not yet initialized. |