pub unsafe extern "C" fn nrf_modem_at_scanf(
    cmd: *const c_char,
    fmt: *const c_char
    ...
) -> c_int
Expand description

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. @param … Variable argument list.

@returns The number of arguments matched. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_EFAULT * cmd - or * fmt - are * NULL - . Returns -NRF_EBADMSG No arguments were matched. Returns -NRF_ENOMEM Not enough shared memory for this request. Returns -NRF_ESHUTDOWN If the modem was shut down.