nrfxlib API 2.8.99
|
int nrf_modem_at_cmd_async | ( | nrf_modem_at_resp_handler_t | callback, |
const char * | fmt, | ||
... ) |
#include <nrf_modem/include/nrf_modem_at.h>
Send a formatted AT command to the modem and receive the response asynchronously via a callback.
This function waits for the Modem to acknowledge the AT command but will return without waiting for the command execution.
callback | Callback to receive the response. |
fmt | Command format. |
... | Format arguments. |
0 | On "OK" responses. |
-NRF_EPERM | The Modem library is not initialized. |
-NRF_EFAULT | callback or fmt are NULL . |
-NRF_EINVAL | Bad format fmt . |
-NRF_EINPROGRESS | Another AT command is executing. |
-NRF_ENOMEM | Not enough shared memory for this request. |
-NRF_ESHUTDOWN | If the modem was shut down. |