Copyright © Neoway Technology Co., Ltd
AT+TCPCLOSE=1
+TCPCLOSE:1,OK
Close the TCP link.
The TCP link on socket 1 is closed successfully.
AT+TCPCLOSE=5
+TCPCLOSE: ERROR
The TCP link is closed.
The server sends TCP link closing command or
the network encounters abnormality or weak
signals.
7.5 Querying TCP/UDP Link Status: +IPSTATUS
To query the TCP/UDP link status
<n>: Socket number, ranging from 0 to 4
+IPSTATUS:<n>,<CONNECT or DISCONNECT>[,<TCP or UDP>, <send-buffer-
size>]
<CONNECT or DISCONNECT>:Socket status
<TCP or UDP>: Link type, value: TCP or UDP
<send-buffer-size>:The size of the available send buffer on the module, in decimal
ASCII mode, unit: byte
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,TCP,4096
A TCP link has been set up on socket
0 and the buffer size is 4096 bytes.
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,UDP,4096
A UDP link has been set up on socket
0 and the buffer size is 1024 bytes.
AT+IPSTATUS=1
+IPSTATUS: 1,DISCONNECT
No TCP or UDP link is set up on socket
1.
The AT command is not complete.
The socket number in the command is
incorrect.