nRF Connect SDK API 0.1.0
|
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.
[in] | list | Parameter list. |
[in] | index | Index in the list where to put the parameter. |
[in] | array | Pointer to the array of number values. |
[in] | array_len | In bytes (must currently be divisible by 4) |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |