5.2.2.5
139B163B163B163B
AT+SKCT
Function
:
Create a socket connection.In client mode,module wait for connection is over(success
or failure) to return,and in server mode it return after creating a network.
Format
:
AT+SKCT=
[protocol],[cs],[host_timeout],<port>
<CR>
+OK=
<socket>
<CR><LF><CR><LF>
Parameter
:
protocol
:
Protocol Type
,
Table 6-6 Protocol Type
Value
Meanings
0 TCP
1 UDP
cs
:
C/S mode
,
Table 6-7 C/S mode
Value
Meanings
0 Client
1 Server
the meanings of
host_timeout is
shown as follows according to protocol and C/S
mode.
Table 6-8 host_timeout
cs
protocol
Meanings
0 X
Name of target server,it can be filled with
domain name or ip address
,
For example
"192.168.1.100"or "www.sina.com.cn"
1 0
TCP connection timeout period,it means client
will be automatically kicked out from server if it
send nothing in effective period;Effective value
range is 1~10000000,Unit:second,0 means
never,default setting is 120 seconds
1 1
No
Meanings
port
means Port number
socket
means socket number
Содержание HLK-WIIF-M04
Страница 15: ...4 Then click search modules as shown below...
Страница 56: ...figure5 16 query the receiver buffer figure5 17 socket receiving...
Страница 62: ...figure5 23 instruction test...