HF-LPT220 Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 41 -
When setting, “off” means close TCP link. After finish this command, module disconnect TCP
link and not connect again. “On” means open TCP link. After finish this command, module re-
connect TCP server right away.
4.2.2.27.
AT+SOCKB
Function: Set/Query SOCKB parameters. Setting is valid after reset.
Format:
Query Operation
AT+SOCKB<CR>
+ok=<protocol,port,IP><CR><LF><CR><LF>
Set Operation
AT+SOCKB=<protocol,port,IP><CR>
+ok<CR><LF><CR><LF>
Parameters:
Protocol: Protocol type:
TCP: Only for TCP Client
UDP: UDP Client
UDPS: UDP Server
Port: Protocol Port in decimal, less than 65535
IP: Destination IP address, domain name is support
If set as UDP SERVER, the module will save the IP address and port of the latest UDP
packet received. The data will be sent to the saved IP address and port. If the module
hasn’t
saved any IP address and port when power up. The data will be sent to the IP address and
port which is set by this command.
If set as UDP,CLIENT, the data will always be sent to the IP address and port set by this
command.
4.2.2.28.
AT+TCPDISB
Function: Open/Close SOCKB connection
Format:
Query Operation
AT+TCPDISB<CR>
+ok=<sta><CR><LF><CR><LF>
Set Operation
AT+TCPDISB =<on/off><CR>
+ok<CR><LF><CR><LF>
Parameters:
When setting, “off” means close TCP link. After finish this command, module disconnect TCP
link and not connect again. “On” means open TCP link. After finish this command, module re-
connect TCP server right away.
4.2.2.29.
AT+TCPTOB
Function: Set/Query Operation SOCKB TCP timeout. Setting is valid after reset.
Format: