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

◆ SEND_ERROR

#define SEND_ERROR ( _mod,
_type,
_error_code )

#include <applications/asset_tracker_v2/src/modules/modules_common.h>

Value:
struct _mod ## _module_event *event = new_ ## _mod ## _module_event(); \
__ASSERT(event, "Not enough heap left to allocate event"); \
event->type = _type; \
event->data.err = _error_code; \
APP_EVENT_SUBMIT(event)

Macro used to submit an error event.

Parameters
_modName of module that the event corresponds to.
_typeName of the type of error event.
_error_codeError code.