nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_modem_at_cmd_custom_set()

int nrf_modem_at_cmd_custom_set ( struct nrf_modem_at_cmd_custom custom_commands,
size_t  len 
)

#include <nrf_modem/include/nrf_modem_at.h>

Set a list of custom AT commands that are implemented in the application.

When a custom AT command list is set, AT commands sent via nrf_modem_at_cmd that match any AT command in the list, will be redirected to the custom callback function instead of being sent to the modem.

Note
The custom commands are disabled by passing NULL to the custom_commands and 0 to the len.
Parameters
custom_commandsList of custom AT commands.
lenCustom AT command list size.
Return values
0On success.
-NRF_EINVALOn invalid parameters.