
WIFI-LPT100-B User Manual
42
/
60
Query Operation:
AT+NETP<CR>
+ok=<protocol, CS, port, IP><CR>< LF ><CR>< LF >
Set Operation:
AT+NETP=<protocol, CS, port, IP><CR>
+ok<CR>< LF ><CR>< LF >
➢
Parameters:
Protocol: TCP, UDP,
CS: SERVER, CLIENT
Port: protocol port ID: Decimal digit and less than 65535.
IP: Server’s IP address when module set as client.
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.
14) AT+TCPTO
➢
Function:
Set/Query TCP timeout
➢
Format:
Query Operation:
AT+ TCPTO<CR>
+ok=<time><CR>< LF ><CR>< LF >
Set Operation:
AT+ TCPTO=<time ><CR>
+ok<CR>< LF ><CR>< LF >
➢
Parameters:
Time: TCP timeout (<= 600s, >=0. 300s by default)
OCKA begin to count time when TCP channel don’t receive any data,
clear time
counter when TCP channel receive any data. If the time counter reaches the TCPTO time, the
TCP channel will be break. If SOCKA work in TCP Client, it will connect the TCP server
instantly, and when the module work in TCP Server, the TCP client device should make the
connection itself.
15) AT+TCPLK
➢
Function:
Query SOCKA connection status;