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

◆ cloud_codec_decode_config()

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.

Parameters
[in]inputString buffer with encoded config.
[in]input_lenLength of input.
[out]cfgWhere to store the decoded config.
Return values
0on success.
-ENODATAif string doesn't contain required JSON objects.
-ENOMEMif codec couldn't allocate memory.
-ECANCELEDif data was already processed.
-ENOTSUPif the function is not supported by the encoding backend.