NB-IoT Module Series
BC26 AT Commands Manual
BC26_AT_Commands_Manual 31 / 73
2.14. AT+CGPADDR Show PDP Addresses
The command returns the IP address of the device.
The execution command returns a list of PDP addresses for the specified context identifiers. If no <cid> is
specified, the addresses for all defined contexts are returned.
The test command returns a list of defined <cid>s. These are <cid>s that have been activated and may or
may not have an IP address associated with them.
Parameter
Example
AT+CGPADDR=0
+CGPADDR:0,101.43.5.1
AT+CGPADDR Show PDP Addresses
Write Command
AT+CGPADDR[=<cid>[,<cid>[,...]]]
Response
+CGPADDR: <cid>,<PDP_addr>
[<CR><LF>+CGPADDR: <cid>,<PDP_addr>
[...]]
OK
Test Command
AT+CGPADDR=?
Response
+CGPADDR:(list of defined <cid>s)
OK
<cid> Integer type; a numeric parameter which specifies a particular PDP context definition
(see AT+CGDCONT command). If no <cid> is specified, the addresses for all defined
contexts are returned.
<PDP_addr> A String type that identifies the MT in the address space applicable to the PDP. The
address may be static or dynamic.
For a static address, it will be the one set by the AT+CGDCONT command when the
context was defined.
For a dynamic address it will be the one assigned during the last PDP context activation
that used the context definition referred to by <cid>. <PDP_address> is omitted if none
is available.