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

◆ modem_slm_send_cmd()

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.

Parameters
commandPointer to null terminated AT command string without command terminator
timeoutResponse timeout for the command in seconds, Zero means infinite wait
Return values
stateat_cmd_state if command execution succeeds.
-EAGAINif command execution times out.
otherif command execution fails.