nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_at_scanf()

int nrf_modem_at_scanf ( const char *  cmd,
const char *  fmt,
  ... 
)

#include <nrf_modem/include/nrf_modem_at.h>

Send an AT command to the modem and read the formatted response into the supplied argument list.

Supports all the format specifiers of scanf() as implemented by the selected C library. This function does not support retrieving the modem response beyond reading the formatted response into the argument list.

Parameters
cmdAT command.
fmtResponse format.
...Variable argument list.
Returns
The number of arguments matched.
Return values
-NRF_EPERMThe Modem library is not initialized.
-NRF_EFAULTcmd or fmt are NULL.
-NRF_EBADMSGNo arguments were matched.
-NRF_EAGAINTimed out while waiting for another AT command to complete.
-NRF_ENOMEMNot enough shared memory for this request.
-NRF_ESHUTDOWNIf the modem was shut down.