nRF Connect SDK API 2.8.99
|
int at_params_string_put | ( | const struct at_param_list * | list, |
size_t | index, | ||
const char * | str, | ||
size_t | str_len ) |
#include <include/modem/at_params.h>
Add a parameter in the list at the specified index and assign it a string value.
The parameter string value is copied and added to the list as a null-terminated string. If a parameter exists at this index, it is replaced.
[in] | list | Parameter list. |
[in] | index | Index in the list where to put the parameter. |
[in] | str | Pointer to the string value. |
[in] | str_len | Number of characters of the string value str . |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |