nrf9160

Set command

The set command returns the subscriber Mobile Station International Subscriber Directory Number (MSISDN).

Syntax:

+CNUM

Response syntax:

+CNUM: ,<number1>,<type1>

An ERROR response is returned if MSISDN is not available on Subscriber Identity Module (SIM) card or if SIM card is not initialized.

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

<numberx>
String. Phone number of format specified by <typex>.
<typex>
Integer. Type of address octet (see 3GPP TS 24.008, subclause 10.5.4.7).

The following command example reads the subscriber number stored in the SIM:

AT+CNUM
+CNUM: ,"+1234567891234",145
OK