5.2.2.8
142B166B166B166B
AT+SKSTT
Function
:
Aquire the state of the specified socket, the first line of return value means the state of the
message of the socket,if the socket mode is TCP server,then beginning from the first line,
each line shows a socket state of a client which is joined in the server
Format
:
AT+SKSTT=
<socket>
<CR>
+OK=
<socket>,<status>,[host],[port],[rx_data]
<CR><LF>
[socket],[status],[host],[port],[rx_data]
<CR><LF>
...
<CR><LF>
Parameter
:
socket
means socket number
status
means socket state
Table 6-9 Socket status
Value
Meanings
0 Disconnected
1
Detecting
2 Connected
host
means IP address of the opposite terminal
port
means port number of the opposite terminal
rx_data
means data size in RX buffer
5.2.2.9
143B167B167B167B
AT+SKCLS
Function:
Close the specified socket
Format
:
AT+SKCLS=
<socket>
<CR>
+OK<CR><LF><CR><LF>
Parameter:
socket
means socket number
5.2.2.10
144B168B168B168B
AT+SKSDF
Function
:
Set the default sending socket of system.If user needs to enter transparent transmition