nrf9160

Read command

The read command allocates a new context identifier.

The command allocates a unique context identifier, which can be referenced with other commands like +CGDCONT. The allocated identifier can be deallocated with the +CGDCONT command by giving only the <cid> parameter.

The %XNEWCID command can be used instead of reading existing default context with AT+CGDCONT? and finding an unused <cid> value before configuring a new context.

A maximum of four context identifiers can be defined. In some network configurations, the maximum can be less than four. The read command allocates a new context identifier.

Response syntax:

%XNEWCID: <cid>

The read command parameter and its defined value are the following:

<cid>
Integer, 0–10.

The following command example requests the allocation of a new context identifier:

AT%XNEWCID?
%XNEWCID: 2
OK