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

◆ cloud_codec_decode_cloud_location()

int cloud_codec_decode_cloud_location ( const char *  input,
size_t  input_len,
struct location_data location 
)

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

Decode received cloud location data.

Parameters
[in]inputString buffer with encoded cloud location data.
[in]input_lenLength of input.
[out]locationStorage for the decoded cloud location data.
Return values
0on success.
-EFAULTif cloud returned with error to the location request.
-ENOMEMif codec could not allocate memory.
-ENOTSUPif the function is not supported by the backend.
Returns
0 on success or negative error value on failure.