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

◆ at_params_array_put()

int at_params_array_put ( const struct at_param_list * list,
size_t index,
const uint32_t * array,
size_t array_len )

#include <include/modem/at_params.h>

Add a parameter in the list at the specified index and assign it an array type value.

The parameter array value is copied and added to the list. If a parameter exists at this index, it is replaced. Only numbers (uint32_t) are currently supported. If the list contain compound values the parser will try to convert the value. Either 0 will be stored or if the value start with a numeric value that value will be converted, the rest of the value will be ignored. Ie. 5-23 will result in 5.

Parameters
[in]listParameter list.
[in]indexIndex in the list where to put the parameter.
[in]arrayPointer to the array of number values.
[in]array_lenIn bytes (must currently be divisible by 4)
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.