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

◆ at_params_string_get()

int at_params_string_get ( const struct at_param_list * list,
size_t index,
char * value,
size_t * len )

#include <include/modem/at_params.h>

Get a parameter value as a string.

The parameter type must be a string, or an error is returned. The string parameter value is copied to the buffer. len must be bigger than the string length, or an error is returned. The copied string is not null-terminated.

Parameters
[in]listParameter list.
[in]indexParameter index in the list.
[in]valuePointer to the buffer where to copy the value.
[in,out]lenAvailable space in value, returns actual length copied into string buffer in bytes.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.