Set command

The set command subscribes or unsubscribes unsolicited network status notifications.

Syntax:

+CEREG=<n>

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

<n>
0 – Disable unsolicited result codes
1 – Enable unsolicited result codes +CEREG:<stat>
2 – Enable unsolicited result codes +CEREG:<stat>[,<tac>,<ci>,<AcT>]
3 – Enable unsolicited result codes +CEREG:<stat>[,<tac>,<ci>,<AcT>[,<cause_type>,<reject_cause>]]
4 – Enable unsolicited result codes +CEREG: <stat>[,[<tac>],[<ci>],[<AcT>][,,[,[<Active-Time>],[<Periodic-TAU>]]]]
5 – Enable unsolicited result codes +CEREG: <stat>[,[<tac>],[<ci>],[<AcT>][,[<cause_type>],[<reject_cause>][,[<Active-Time>],[<Periodic-TAU>]]]]

For the notification syntax parameters, see Read command.

The following command example subscribes notifications with level 2:

AT+CEREG=2
OK

Unsolicited notification level 1, trying to attach:

+CEREG: 2

Unsolicited notification level 2, registered:

+CEREG: 1,"002F","0012BEEF",7