![]() |
nrfxlib API 3.3.99
|
| 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.
| cmd | AT command. |
| fmt | Response format. |
| ... | Variable argument list. |
| -NRF_EPERM | The Modem library is not initialized. |
| -NRF_EFAULT | cmd or fmt are NULL. |
| -NRF_EBADMSG | No arguments were matched. |
| -NRF_EAGAIN | Timed out while waiting for another AT command to complete. |
| -NRF_ENOMEM | Not enough shared memory for this request. |
| -NRF_ESHUTDOWN | If the modem was shut down. |