Set command

The set command provides authenticated access for a restricted AT command.

The restricted command is separated with a semicolon (;). The leading AT prefix is not included in the concatenated command.

Syntax:

%XSUDO=<data_len>,<signature>[,<sec_tag>]
+CME ERROR codes
513 – Not found, public key not found
520 – Authentication failed

The set command parameters and their defined values are the following:

<data_len>
Length of a signed command string.
Only the number of characters in <data_len> from an authenticated command is processed, the rest are ignored. <data_len> shall not be greater than the given command.
<signature>
Command signature in Base64 format
<sec_tag>
A secure tag for multiple public keys. Integer, 0–2147483647. Optional.

The following command example provides authenticated access for the restricted %CMNG command:

AT%XSUDO=15,"c2lnbmF0dXJl";AT%CMNG=3,123,1
OK