nRF Connect SDK API 2.8.99
|
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.
[in] | list | Parameter list. |
[in] | index | Parameter index in the list. |
[in] | value | Pointer to the buffer where to copy the value. |
[in,out] | len | Available space in value , returns actual length copied into string buffer in bytes. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |