nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_modem_at_err_type()

static int nrf_modem_at_err_type ( int error)
inlinestatic

#include <nrf_modem/include/nrf_modem_at.h>

Return the error type represented by the return value of nrf_modem_at_printf and nrf_modem_at_cmd.

Parameters
errorThe return value of nrf_modem_at_printf or nrf_modem_at_cmd.
Return values
NRF_MODEM_AT_ERRORIf the modem response was 'ERROR'.
NRF_MODEM_AT_CME_ERRORIf the modem response was '+CME ERROR'.
NRF_MODEM_AT_CMS_ERRORIf the modem response was '+CMS ERROR'.