![]() |
nrfxlib API 3.3.99
|
| 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.
The custom commands can be disabled by passing NULL to the custom_commands and 0 to the len.
custom_commands must be statically allocated.| custom_commands | List of custom AT commands. |
| len | Custom AT command list size. |
| 0 | On success. |
| -NRF_EINVAL | On invalid parameters. |