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

◆ at_match_cmd()

struct at_token at_match_cmd ( const char *  at,
const char **  remainder 
)

#include <lib/at_parser/at_match.h>

Match an AT command prefix.

This function returns an AT token representing an AT command prefix for AT command set, read, test, events, or notifications. In case of success, this function updates remainder to point to the remaining string after trimming the matched AT token.

Parameters
[in]atAT command string to match.
[out]remainderRemainder of the AT command string after a successful match.
Returns
Matched AT token in case of success. AT token of type AT_TOKEN_TYPE_INVALID in case of failure,