nRF Connect SDK API 0.1.0
|
int cloud_codec_encode_ui_data | ( | struct cloud_codec_data * | output, |
struct cloud_data_ui * | ui_buf | ||
) |
#include <applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h>
Encode UI data.
[out] | output | String buffer for encoding result. |
[in] | ui_buf | UI 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. |