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

◆ cloud_codec_encode_ui_data()

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.

Parameters
[out]outputString buffer for encoding result.
[in]ui_bufUI 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.