nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ at_params_string_put()

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.

Parameters
[in]listParameter list.
[in]indexIndex in the list where to put the parameter.
[in]strPointer to the string value.
[in]str_lenNumber of characters of the string value str.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.