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

◆ cloud_codec_encode_pgps_request()

int cloud_codec_encode_pgps_request ( struct cloud_codec_data output,
struct cloud_data_pgps_request pgps_request 
)

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

Encode cloud codec P-GPS request.

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 P-GPS are kept internal in the LwM2M utils library.
Parameters
[out]outputString buffer for encoding result.
[in]pgps_requestP-GPS request data.
Return values
0on success.
-ENODATAif data object is not marked valid.
-ENOMEMif codec couldn't allocate memory.
-ENOTSUPif the function is not supported by the encoding backend.