nRF Connect SDK API 0.1.0
|
int modem_slm_send_cmd | ( | const char *const | command, |
uint32_t | timeout | ||
) |
#include <include/modem/modem_slm.h>
Function to send an AT command in SLM command mode.
This function wait until command result is received. The response of the AT command is received via the slm_ind_handler_t registered in modem_slm_init.
command | Pointer to null terminated AT command string without command terminator |
timeout | Response timeout for the command in seconds, Zero means infinite wait |
state | at_cmd_state if command execution succeeds. |
-EAGAIN | if command execution times out. |
other | if command execution fails. |