![Neoway M660 Скачать руководство пользователя страница 73](http://html.mh-extra.com/html/neoway/m660/m660_at-command-manual_1667874073.webp)
Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
65
Remarks
N/A
12.3 Closing Connections of the Client: +CLOSECLIENT
Description
To close all connections with the client
Format
AT+CLOSECLIENT=<Socket><CR>
AT+CLOSECLIENT<CR>
Parameter
<Socket>: Socket ID
Return
Value
See the Example.
Example
AT+CLOSECLIENT=1
+CLOSECLIENT:1,remote link closed
Close the socket 1 connection with the client.
AT+CLOSECLIENT
+CLOSECLIENT:0,remote link closed
+CLOSECLIENT:1,remote link closed
All connections with the client is closed
successfully.
AT+CLOSECLIENT
+CLOSECLIENT:transparent remote link
closed
The remote link is closed in transparent
transmission mode.
Remarks
N/A
12.4 Receiving Data from the Client: +TCPRECV(S)
Description
To receive data from the client
Format
+TCPRECV(S):<n>,<length>,<data><CR>
Parameter
<n>: Link number, ranging from 0 to 4
<length>: The length of the data received
<data>: The data received
Add
0x0d 0x0a
to the end of the data. You can identify the end based on <
length
>.
Return
Value
See the Example.
Example
+TCPRECV(S):1,10,1234567899
Remarks
Additional
(s)
makes this command different from the receive mode of the client mode in
format.
The parameters are different from those of the client mode.