nRF Connect SDK API 0.1.0
|
int cloud_codec_encode_batch_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, | ||
size_t | gnss_buf_count, | ||
size_t | sensor_buf_count, | ||
size_t | modem_stat_buf_count, | ||
size_t | modem_dyn_buf_count, | ||
size_t | ui_buf_count, | ||
size_t | impact_buf_count, | ||
size_t | bat_buf_count | ||
) |
#include <applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h>
Encode a batch of cloud buffer data.
[out] | output | string buffer for encoding result. |
[in] | gnss_buf | GNSS data buffer. |
[in] | sensor_buf | Sensor data buffer. |
[in] | modem_stat_buf | Static modem data buffer. |
[in] | modem_dyn_buf | Dynamic modem data buffer. |
[in] | ui_buf | Button data buffer. |
[in] | impact_buf | Impact data buffer. |
[in] | bat_buf | Battery data buffer. |
[in] | gnss_buf_count | Length of GNSS data buffer. |
[in] | sensor_buf_count | Length of Sensor data buffer. |
[in] | modem_stat_buf_count | Length of static modem data buffer. |
[in] | modem_dyn_buf_count | Length of dynamic modem data buffer. |
[in] | ui_buf_count | Length of button data buffer. |
[in] | impact_buf_count | Length of impact data buffer. |
[in] | bat_buf_count | Length of battery data buffer. |
0 | on success. |
-ENODATA | if none of the data elements are marked valid. |
-EINVAL | if the data is invalid. |
-ENOMEM | if codec couldn't allocate memory. |
-ENOTSUP | if the function is not supported by the encoding backend. |