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

◆ AT_MONITOR

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

#include <include/modem/at_monitor.h>

Value:
static void _handler(const char *); \
static STRUCT_SECTION_ITERABLE(at_monitor_entry, name) = { \
.filter = _filter, \
.handler = _handler, \
.flags.direct = false, \
COND_CODE_1(__VA_ARGS__, (.flags.paused = __VA_ARGS__,), ()) \
}
AT monitor entry.
Definition: at_monitor.h:40

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

Parameters
nameThe monitor name.
_filterThe filter for AT notification the monitor should receive, or ANY to receive all notifications.
_handlerThe monitor callback.
...Optional monitor initial state (PAUSED or ACTIVE). The default initial state of a monitor is active.