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

◆ SLM_MONITOR

#define SLM_MONITOR ( name,
_filter,
_handler,
... )

#include <include/modem/modem_slm.h>

Value:
static void _handler(const char *); \
static STRUCT_SECTION_ITERABLE(slm_monitor_entry, name) = { \
.filter = _filter, \
.handler = _handler, \
COND_CODE_1(__VA_ARGS__, (.paused = __VA_ARGS__,), ()) \
}
SLM monitor entry.
Definition modem_slm.h:138

Define an SLM monitor to receive notifications in the system workqueue thread.

Parameters
nameThe monitor's name.
_filterThe filter for AT notification the monitor should receive, or MON_ANY to receive all notifications.
_handlerThe monitor callback.
...Optional monitor initial state (MON_PAUSED or MON_ACTIVE). The default initial state of a monitor is MON_ACTIVE.