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

◆ cloud_codec_encode_impact_data()

int cloud_codec_encode_impact_data ( struct cloud_codec_data output,
struct cloud_data_impact impact_buf 
)

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

Encode impact data.

Parameters
[out]outputString buffer for encoding result.
[in]impact_bufImpact data to encode.
Return values
0on success.
-ENODATAif the data elements is not marked valid.
-EINVALif the data is invalid.
-ENOMEMif codec couldn't allocate memory.