Function nrfxlib_sys::nrf_modem_at_printf
source · pub unsafe extern "C" fn nrf_modem_at_printf(
fmt: *const c_char
...
) -> c_int
Expand description
Send a formatted AT command to the modem.
Supports all format specifiers of printf() as implemented by the selected C library. This function can return a negative value, zero or a positive value.
fmt
- Command format. @param … Format arguments.
Returns 0 On “OK” responses.
@returns A positive value On “ERROR”, “+CME ERROR”, and “+CMS ERROR” responses.
The type of error can be distinguished using * nrf_modem_at_err_type
- .
The error value can be retrieved using * nrf_modem_at_err
- .
Returns -NRF_EPERM The Modem library is not initialized.
Returns -NRF_EFAULT * fmt
- is * NULL
- .
Returns -NRF_EINVAL Bad format * fmt
- .
Returns -NRF_ENOMEM Not enough shared memory for this request.
Returns -NRF_ESHUTDOWN If modem was shut down.