nRF Connect SDK API 2.8.99
|
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.
[out] | output | String buffer for encoding result. |
[in] | impact_buf | Impact data to encode. |
0 | on success. |
-ENODATA | if the data elements is not marked valid. |
-EINVAL | if the data is invalid. |
-ENOMEM | if codec couldn't allocate memory. |