Data Sheet

Air602_AT Instruction User Manual
Note: The above test shows that in the case of DHCP enabled, the second parameter queried by AT+NIP=? is
not the IP address actually obtained by the module, and the second parameter queried by AT+LKSTT is.
2.2.2.3 Query/set the local IP address in SoftAP mode AT+APNIP
Function
When the wireless network card is used as the SoftAP, this command is used to set/query the IP address of
the local end and enable /disable the DHCP server. When the DHCP server is enabled, the IP address of the
wireless network card can still be queried through this command.
FormatASCII):
AT+APNIP=[!?][type],[ip],[netmask],[gateway],[dns]<CR>
+OK[=type,ip,netmask,gateway,dns]<CR><LF><CR><LF>
Parameter
type: address type
Luat 23 /73 page
AT+KEY=!1,0,""
+OK
AT+WJOIN
+OK=3c46d82bd81e,0,11,0,"TP-LINK_HyFi_1E",59
AT+LKSTT
+OK=1,"192.168.1.124","255.255.255.0","192.168.1.1","192.168.1.1","0.0.0.0"
AT+NIP=?
+OK=0,192.168.1.1,255.255.255.0,192.168.1.1,192.168.1.1
Value Dscription
0 Dynamically assign/enable DHCP Server using DHCP
1 Use static IP address / disable DHCP Server