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

◆ json_common_config_add()

int json_common_config_add ( cJSON *  parent,
struct cloud_data_cfg data,
const char *  object_label 
)

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

Encode and add configuration 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]object_labelName of the encoded object.
Returns
0 on success. Otherwise a negative error code is returned.