N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
62
Remarks
This command can be used to query the status of the link in transparent
transmission mode.
7.6 Querying the Status of Data Sent by the TCP Link:
+TCPACK
Description
To query the size of data successfully sent by the TCP server and the size of the
data successfully received
Format
AT+TCPACK=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 4
Return Value
+TCPACK:<n>,<data_sent>,<acked_recv>
< data_sent >:Data successfully sent through this socket
<acked_recv>: Data acknowledged by the receiver
+TCPACK:<n>,< DISCONNECT >
No connection is set up on this socket.
+TCPACK:NO TCP LINK
A UDP link has been set up on this socket.
Example
AT+TCPACK=0
+ TCPACK: 0,20,20
20-byte data has been transmitted from
socket 0 and the receiver acknowledged 20-
byte data.
AT+TCPACK=0
+ TCPACK: 0,128,120
128-byte data has been transmitted from
socket 0 and the receiver acknowledged
120-byte data.
AT+TCPACK=1
+ TCPACK: 1,DISCONNECT
No connection is set up on socket 1.
AT+TCPACK=2
+TCPACK: NO TCP LINK
A UDP link is set up on link 2.
AT+TCPACK=5
ERROR
The socket number in the command is
incorrect.
Remarks
The values of <data_sent> and <acked_recv>are unsigned 64-bit integers in
decimal ASCII. The unit is byte.