N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
61
Return Value
See the Example.
Example
AT+TCPCLOSE=1
+TCPCLOSE:1,OK
Close the TCP link.
The TCP link on socket 1 is closed successfully.
AT+TCPCLOSE=5
+TCPCLOSE: ERROR
Socket number error
+TCPCLOSE:0,Link Closed
The TCP link is closed.
The server sends TCP link closing command or
the network encounters abnormality or weak
signals.
Remarks
N/A
7.5 Querying TCP/UDP Link Status: +IPSTATUS
Description
To query the TCP/UDP link status
Format
AT+IPSTATUS=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 4
Return Value
+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
Example
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.
AT+IPSTATU
ERROR
The AT command is not complete.
AT+IPSTATUS=5
ERROR
The socket number in the command is
incorrect.
Содержание N11 V2
Страница 1: ...N11 V2 AT Command Manual Issue 1 0 Date 2018 10 19 Neoway Product Document...
Страница 15: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 7 OK Remarks The default status setting is 7...
Страница 129: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 121 not support proactive time issuing...
Страница 134: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 126...