At+ Wann; At+ Lann; At+Dhcpden - Waveshare WIFI232 User Manual

Table of Contents

Advertisement

WAVESHARE ELECTRONICS
5.2.2.2.21

AT+ WANN

Function: Set/Query WAN setting, only effective as STA mode;
Format:
Query Operation
AT+WANN<CR>
+ok=<mode,address,mask,gateway><CR>< LF ><CR>< LF >
Set Operation
AT+ WANN=< mode,address,mask,gateway ><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
mode: IP setting for WAN port
address: WAN port IP address;
mask: WAN port subnet mask;
gateway: WAN port gateway address;
This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the
setting will be effective. But user can set this command when module configured as AP.
5.2.2.2.22

AT+ LANN

Function: Set/Query LAN setting, only effective as AP mode;
Format:
Query Operation
AT+LANN<CR>
+ok=<address,mask ><CR>< LF ><CR>< LF >
Set Operation
AT+ LANN=<address,mask ><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
address: LAN port IP address;
mask: LAN port subnet mask;
This Instruction only effective for WIFI232 works as AP. After WIFI232 module boots up again, the
setting will be effective. But user can set this command when module configured as STA.
Note: AT+WANN check the wan port address of module, AT+LANN check the LAN port address of
module, and the two IP cannot be set on the same network segment,If do,Module will be abnormal.
5.2.2.2.23

AT+DHCPDEN

Function: Enable/Disable LAN DHCP server function;
Format:
Query Operation
AT+DHCPDEN<CR>
+ok=<sta><CR><LF><CR><LF>
Set Operation
AT+DHCPDEN=<sta><CR>
off: TCP link not available; when setting "off", module will disconnect with TCP
server and not connect again.
static: Static IP
DHCP: Dynamic IP
Page 57 of 81
WIFI232 User Manual

Advertisement

Table of Contents
loading

Table of Contents