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

◆ cloud_codec_encode_data()

int cloud_codec_encode_data ( struct cloud_codec_data * output,
struct cloud_data_gnss * gnss_buf,
struct cloud_data_sensors * sensor_buf,
struct cloud_data_modem_static * modem_stat_buf,
struct cloud_data_modem_dynamic * modem_dyn_buf,
struct cloud_data_ui * ui_buf,
struct cloud_data_impact * impact_buf,
struct cloud_data_battery * bat_buf )

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

Encode cloud buffer data.

Parameters
[out]outputString buffer for encoding result.
[in]gnss_bufGNSS data.
[in]sensor_bufSensor data.
[in]modem_stat_bufStatic modem data.
[in]modem_dyn_bufDynamic modem data.
[in]ui_bufButton data.
[in]impact_bufImpact data.
[in]bat_bufBattery data.
Return values
0on success.
-ENODATAif none of the data elements are marked valid.
-EINVALif the data is invalid.
-ENOMEMif codec couldn't allocate memory.
-ENOTSUPif the function is not supported by the encoding backend.