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

◆ at_parser_cmd_type_get()

int at_parser_cmd_type_get ( struct at_parser parser,
enum at_parser_cmd_type type 
)

#include <include/modem/at_parser.h>

Get the type of the command prefix in the current AT command line.

Parameters
[in]parserA pointer to the AT parser.
[out]typeA pointer to the AT command prefix type.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.
-EINVALOne or more of the supplied parameters are invalid.
-EPERMparser has not been initialized.
-EOPNOTSUPPOperation not supported for the given AT command line.