pub unsafe extern "C" fn nrf_modem_at_cmd_custom_set(
    custom_commands: *mut nrf_modem_at_cmd_custom,
    len: usize
) -> c_int
Expand description

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 - .

  • custom_commands - List of custom AT commands.
  • len - Custom AT command list size.

Returns 0 On success. Returns -NRF_EINVAL On invalid parameters.