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

◆ json_common_neighbor_cells_data_add()

int json_common_neighbor_cells_data_add ( cJSON * parent,
struct cloud_data_neighbor_cells * data,
enum json_common_op_code op )

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

Encode and add neighbor cell 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 or has an invalid timestamp value.
-EINVALif the passed in input arguments do not match what is required by the OP code.
-ENOMEMif the function fails to allocate memory.