User's Manual

HF-A21-SMT Embedded WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
46
AT+ TCPLK<CR>
+ok=<sta><CR>< LF ><CR>< LF >
Parameters:
sta.: if module already setup TCP link;
on: TCP link setup;
off: TCP link not setup;
4.2.2.20. AT + TCPDIS
Function: Open/Cose TCP (Only TCP Client available);
Format:
Query Operation
AT+TCPDIS<CR>
+ok=<sta><CR>< LF ><CR>< LF >
Set Operation
AT+ TCPDIS=<on/off><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
sta.: set/qurey TCP link status;
on: TCP link availabe; When setting “on”, module will connect to TCP
server right away.
off: TCP link not availabe; when setting “off”, module will disconnect with
TCP server and not connect again.
4.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
static: Static IP
DHCP: Dynamic IP
address: WAN port IP address;
mask: WAN port subnet mask;
gateway: WAN port gateway address;
This Instruction only effective for HF-A21-SMT works as STA. After HF-A21-SMT module boots
up again, the setting will be effective. But user can set this command when module configured as
AP.
4.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;