![]() |
nrfxlib API 3.3.99
|
| 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.
data to an internal buffer, so any heap allocation for data can be freed immediately after calling this function.| cmd | SoftSIM response command. | |
| req_id | Request ID used to match request and response. | |
| [in] | data | Pointer to the data of the SoftSIM response. |
| data_len | Length of the data of the SoftSIM response. |
| 0 | on success. |
| -NRF_EINVAL | If input data is invalid. |
| -NRF_ENOMEM | If memory allocation failed. |
| -NRF_EPERM | The Modem library is not initialized. |