nrf9160

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 code
513 – Not found, public key not found.
514 – Not allowed.
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>
Integer, 0–9 (optional). A secure tag for multiple public keys.

The following command example provides authenticated access for the restricted +CMD command:

AT%XSUDO=28,"c2lnbmF0dXJl";+CMD=...
OK