#include <applications/asset_tracker_v2/src/cloud/cloud_codec/cloud_codec.h>
Encode cloud buffer data.
- Parameters
-
[out] | output | String buffer for encoding result. |
[in] | gnss_buf | GNSS data. |
[in] | sensor_buf | Sensor data. |
[in] | modem_stat_buf | Static modem data. |
[in] | modem_dyn_buf | Dynamic modem data. |
[in] | ui_buf | Button data. |
[in] | impact_buf | Impact data. |
[in] | bat_buf | Battery data. |
- Return values
-
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. |