Get string value from AT command with length check.
len
must be bigger than the string length, or an error is returned. The copied string is null-terminated.
- Parameters
-
[in] | parser | AT parser. |
[in] | index | Parameter index in the AT parser. |
[out] | 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, excluding the terminating null character. |
- Return values
-
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |