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

◆ json_common_agnss_request_data_add()

int json_common_agnss_request_data_add ( cJSON *  parent,
struct cloud_data_agnss_request data,
enum json_common_op_code  op 
)

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

Encode and add A-GNSS 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.
[in]opOperation that is to be carried out.
Return values
0on success.
-ENODATAif the passed in data is not queued.
-EINVALif the passed in input arguments does not match what is required by the OP code.
-ENOMEMif the function fails to allocate memory.