The set command configures connection parameters.
Syntax:
+CGDCONT=<cid> [,<PDP_type> [,<APN> [,<PDP_addr> [,<d_comp> [,<h_comp> [,<IPv4AddrAlloc> [,<request_type> [,<P-CSCF_discovery> [,<IM_CN_Signalling_Flag_Ind> [,<NSLPI> [,<securePCO>]]]]]]]]]]]
Note:
+CGDCONT=<cid> causes the values for context number
<cid> to become undefined.A maximum of four contexts can be defined. In some network configurations, the maximum can be less than four.
The set command parameters and their defined values are the following:
- <cid>
- Integer, 0–10 (mandatory). Specifies a particular Packet Data Protocol (PDP) Context definition. The parameter is local to the device and is used in other PDP context-related commands.
- <PDP_type>
- String
- <APN>
- String. Access Point Name (APN).
- <PDP_addr>
- Ignored
- <d_comp>
- Ignored
- <h_comp>
- Ignored
- <IPv4AdrAlloc>
- 0 – IPv4 address via Non-access Stratum (NAS) signaling (default)
- <request_type>
- Ignored
- <P-CSCF_discovery>
- Ignored
- <IM_CN_SignallingFlag>
- Ignored
- <NSLPI>
- 0 – Non-access Stratum (NAS) Signalling Low Priority Indication (NSLPI) value from configuration is used (default)
- <securePCO>
- 0 – Protected transmission of Protocol Configuration Options (PCO) is not requested (default)
The following command example configures CID 1 to use IPv4 and access point "IOT_apn":
AT+CGDCONT=1,"IP","IOT_apn"
OK