N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
73
10.2 Closing the Listening Connection: +CLOSELISTEN
Description
To close the listening connection and close all connections
Format
AT+CLOSELISTEN<CR>
Parameter
N/A
Return Value
See the Example.
Example
+CLOSELISTEN: 0,local link closed
The host closes the connection or
network abnormalities occur.
AT+CLOSELISTEN
+CLOSELISTEN: 0,local link closed
The local link will be closed if there
is any connection to the client.
Remarks
N/A
10.3 Closing Connections with the Client: +CLOSECLIENT
Description
To close all connections with the client
Format
AT+CLOSECLIENT[=<socket>]<CR>
Parameter
<Socket>: Socket ID
Return Value
<CR><LF>+CLOSECLIENT: <socket>,remote link closed<CR><LF>
Example
AT+CLOSECLIENT
+CLOSECLIENT: 1,remote link closed
+CLOSECLIENT: 2,remote link closed
There is no parameter in this
command.
All connections with the client are
closed successfully.
AT+CLOSECLIENT=1
+CLOSECLIENT: 1,remote link closed
There is a parameter in this
command.
Close the connection on socket 1 with
the client.
AT+CLOSECLIENT=1
ERROR
No client on socket 1.
Remarks
N/A