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

◆ json_common_pgps_request_data_add()

int json_common_pgps_request_data_add ( cJSON *  parent,
struct cloud_data_pgps_request data 
)

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

Encode and add P-GPS request data to the parent object.

Parameters
[out]parentPointer to object that the encoded data is added to.
[in]dataPointer to data that is to be encoded.
Return values
0on success.
-ENODATAif the passed in data is not queued.
-ENOMEMif the function fails to allocate memory.