
VW801, VW802, VW803, VW804 Serial-WiFi Modem User Manual
Vitalwell Electronics (Zhuhai) Pte. Ltd. www.vital-well.com
email:
28
right away.
4.2.2.21. AT+SOCKB
n
Function: Set/Query SOCKB parameters. Setting is valid after reset.
n
Format:
u
Query Operation
AT+SOCKB<CR>
+ok=<protocol,port,IP><CR><LF><CR><LF>
u
Set Operation
AT+SOCKB=<protocol,port,IP><CR>
+ok<CR><LF><CR><LF>
n
Parameters:
u
Protocol: Protocol type:
²
TCP: Only for TCP Client
²
UDP: UDP Client
²
UDPS: UDP Server
u
Port: Protocol Port in decimal, less than 65535
u
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.22. AT+TCPDISB
n
Function: Open/Close SOCKB connection
n
Format:
u
Query Operation
AT+TCPDISB<CR>
+ok=<sta><CR><LF><CR><LF>
u
Set Operation
AT+TCPDISB =<on/off><CR>
+ok<CR><LF><CR><LF>
n
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 reconnect TCP server
right away.