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

◆ AT_CMD_CUSTOM

#define AT_CMD_CUSTOM ( entry,
_filter,
_callback )

#include <include/modem/at_cmd_custom.h>

Value:
static int _callback(char *buf, size_t len, char *at_cmd); \
static STRUCT_SECTION_ITERABLE(nrf_modem_at_cmd_custom, entry) = { \
.cmd = _filter, \
.callback = _callback, \
.cmd_strlen = sizeof(_filter) - sizeof(char) \
}

Define a custom AT command callback.

Parameters
entryThe entry name.
_filterThe (partial) AT command on which the callback should trigger.
_callbackThe AT command callback function.