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

◆ at_params_array_get()

int at_params_array_get ( const struct at_param_list list,
size_t  index,
uint32_t *  array,
size_t *  len 
)

#include <include/modem/at_params.h>

Get a parameter value as an array.

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

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