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

◆ json_common_wifi_ap_data_add()

int json_common_wifi_ap_data_add ( cJSON *  parent,
struct cloud_data_wifi_access_points data,
enum json_common_op_code  op 
)

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

Encode and add wifi survey 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.
-ENOMEMif the function fails to allocate memory.
-EFAULTif an error occurs in the call to snprintk.