nrf9160

Set command

The set command subscribes unsolicited network status notifications.

Syntax:

+CEREG=<n>

The set command parameter and its defined values are the following:

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

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