#include <applications/asset_tracker_v2/src/cloud/cloud_codec/json_common.h>
Encode and add wifi survey data to the parent object.
- Parameters
-
[out] | parent | Pointer to object that the encoded data is added to. |
[in] | data | Pointer to data that is to be encoded. |
[in] | op | Operation that is to be carried out. |
- Return values
-
0 | on success. |
-ENODATA | if the passed in data is not queued or has an invalid timestamp value. |
-ENOMEM | if the function fails to allocate memory. |
-EFAULT | if an error occurs in the call to snprintk. |