nRF Connect SDK API 0.1.0
|
int at_parser_cmd_next | ( | struct at_parser * | parser | ) |
#include <include/modem/at_parser.h>
Move the cursor of an AT parser to the next command line of its configured AT command string.
It is possible to call this function successfully with a given AT parser if and only if its configured AT command string has multiple lines and its current line is not the last one.
[in] | parser | A pointer to the AT parser. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |
-EINVAL | One or more of the supplied parameters are invalid. |
-EPERM | parser has not been initialized. |
-EOPNOTSUPP | The cursor cannot move to the next line. This error occurs if there is no next line to move to or the configured AT command string is malformed. |