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

◆ module_enqueue_msg()

int module_enqueue_msg ( struct module_data module,
void *  msg 
)

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

Enqueue message to a module's queue.

Parameters
[in]modulePointer to a structure containing module metadata.
[in]msgPointer to a message that will be enqueued.
Returns
0 if successful, otherwise a negative error code.