nRF Connect SDK API 2.8.99
|
int cloud_codec_decode_config | ( | const char * | input, |
size_t | input_len, | ||
struct cloud_data_cfg * | cfg ) |
#include <applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h>
Decode received configuration.
[in] | input | String buffer with encoded config. |
[in] | input_len | Length of input. |
[out] | cfg | Where to store the decoded config. |
0 | on success. |
-ENODATA | if string doesn't contain required JSON objects. |
-ENOMEM | if codec couldn't allocate memory. |
-ECANCELED | if data was already processed. |
-ENOTSUP | if the function is not supported by the encoding backend. |