Data Sheet

Air602_AT Instruction User Manual
Create a socket. In client mode, it returns after waiting for the connection to complete (success or failure); in
server mode, it returns directly after the creation is completed.
FormatASCII):
AT+SKCT=[protocol],[cs],[host_timeout],<remote_port>,<local_port><CR>
+OK=<socket><CR><LF><CR><LF>
Parameter
protocolprotocol type
csC/S mode
host_timeoutAccording to protocol and cs, the dscriptions are as follows
cs protocol
Dscription
0 X
Destination server name, you can enter the
domain name or ip address, such as
"192.168.1.100" or "www.sina.com.cn"
1 0
The TCP connection timeout period, that is, the client
connected to the server is automatically kicked off after
sending no data at this time. The valid value range is
1~10000000, the unit is seconds, 0 means never, the
default is 120 seconds.
1 1
remote_port Remote port number
Luat 51 /73 page
Meaningless
Value Dscription
0 TCP
1 UDP
Value Dscription
0 Client
1 Server