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

◆ nrf_modem_at_cmd_custom_handler_t

typedef int(* nrf_modem_at_cmd_custom_handler_t) (char *buf, size_t len, char *at_cmd)

#include <nrf_modem/include/nrf_modem_at.h>

AT command handler prototype.

Implements a custom AT command in the application.

Parameters
bufBuffer to receive the response into.
lenBuffer length.
at_cmdAT command.
Return values
0On "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.
Return values
-NRF_EPERMThe Modem library is not initialized.
-NRF_EFAULTbuf or fmt are NULL.
-NRF_ENOMEMNot enough shared memory for this request.
-NRF_E2BIGThe response is larger than the supplied buffer buf.