nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_modem_softsim_res()

int nrf_modem_softsim_res ( enum nrf_modem_softsim_cmd cmd,
uint16_t req_id,
const void * data,
uint16_t data_len )

#include <nrf_modem/include/nrf_modem_softsim.h>

Sends a SoftSIM response to a request.

This function is used to respond to the Modem with the data requested by a specific request.

Note
This function takes care of copying data to an internal buffer, so any heap allocation for data can be freed immediately after calling this function.
Parameters
cmdSoftSIM response command.
req_idRequest ID used to match request and response.
[in]dataPointer to the data of the SoftSIM response.
data_lenLength of the data of the SoftSIM response.
Return values
0on success.
-NRF_EINVALIf input data is invalid.
-NRF_ENOMEMIf memory allocation failed.
-NRF_EPERMThe Modem library is not initialized.