nRF Connect SDK API 0.1.0
|
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.
[out] | parent | Pointer to object that the encoded data is added to. |
[in] | data | Pointer to data that is to be encoded. |
0 | on success. |
-ENODATA | if the passed in data is not queued. |
-ENOMEM | if the function fails to allocate memory. |