EasyManua.ls Logo

Neoway N11 V2 - Querying TCP;UDP Link Status (+IPSTATUS)

Neoway N11 V2
134 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents

Related product manuals