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

◆ data_module_event_type

#include <applications/asset_tracker_v2/src/events/data_module_event.h>

Data event types submitted by Data module.

Enumerator
DATA_EVT_DATA_READY 

All data has been received for a given sample request.

DATA_EVT_DATA_SEND 

Send newly sampled data. The event has an associated payload of type data_module_data_buffers in the data.buffer member.

If a non LwM2M build is used the data is heap allocated and must be freed after use by calling k_free() on data.buffer.buf.

DATA_EVT_DATA_SEND_BATCH 

Send older batched data. The event has an associated payload of type data_module_data_buffers in the data.buffer member.

If a non LwM2M build is used the data is heap allocated and must be freed after use by calling k_free() on data.buffer.buf.

DATA_EVT_UI_DATA_SEND 

Send UI button data. The event has an associated payload of type data_module_data_buffers in the data.buffer member.

If a non LwM2M build is used the data is heap allocated and must be freed after use by calling k_free() on data.buffer.buf.

DATA_EVT_UI_DATA_READY 

UI button data is ready to be sent.

DATA_EVT_IMPACT_DATA_READY 

Impact data is ready to be sent.

DATA_EVT_IMPACT_DATA_SEND 

Send impact data, similar to DATA_EVT_UI_DATA_SEND

DATA_EVT_CLOUD_LOCATION_DATA_SEND 

Send cloud location data. The event has an associated payload of type data_module_data_buffers in the data.buffer member.

If a non LwM2M build is used the data is heap allocated and must be freed after use by calling k_free() on data.buffer.buf.

DATA_EVT_CONFIG_INIT 

Send the initial device configuration. The event has an associated payload of type cloud_data_cfg in the data.cfg member.

DATA_EVT_CONFIG_READY 

Send the updated device configuration. The event has an associated payload of type cloud_data_cfg in the data.cfg member.

DATA_EVT_CONFIG_SEND 

Acknowledge the applied device configuration to cloud. The event has an associated payload of type data_module_data_buffers in the data.buffer member.

If a non LwM2M build is used the data is heap allocated and must be freed after use by calling k_free() on data.buffer.buf.

DATA_EVT_CONFIG_GET 

Get the recent device configuration from cloud.

DATA_EVT_DATE_TIME_OBTAINED 

Date time has been obtained.

DATA_EVT_SHUTDOWN_READY 

The data module has performed all procedures to prepare for a shutdown of the system. The event carries the ID (id) of the module.

DATA_EVT_ERROR 

An irrecoverable error has occurred in the data module. Error details are attached in the event structure.