nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ cloud_codec_encode_cloud_location()

int cloud_codec_encode_cloud_location ( struct cloud_codec_data output,
struct cloud_data_cloud_location cloud_location 
)

#include <applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h>

Encode cloud codec cloud location data.

Note
LwM2M builds: This function does not output a list of objects, unlike other functions in this API. The object references that are required to update Wi-Fi access points are kept internal in the LwM2M utils library.
Parameters
[out]outputString buffer for encoding result.
[in]cloud_locationCloud location data.
Return values
0on success.
-ENODATAif data object is not marked valid.
-ENOMEMif codec could not allocate memory.
-EINVALif the data is invalid.
-ENOTSUPif the function is not supported by the encoding backend.