WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
86
Return Value
See the Example.
Example
+TCPRECV: 0,10,1234567890
10-byte data is successfully received
on socket 0. The data is
1234567890
.
Remarks
N/A
9.8 Closing TCP Connection: +TCPCLOSE
Description
To close a TCP connection
Format
AT+TCPCLOSE=<n> <CR>
AT+TCPCLOSE=?<CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return Value
See the Example.
Example
AT+TCPCLOSE=1
OK
+TCPCLOSE: 1,OK
The TCP connection on socket 1 is
closed successfully.
AT+TCPCLOSE=?
+TCPCLOSE: (0-5)
OK
Query the value range of socket
numbers that TCP connection is
closed.
AT+TCPCLOSE=99
+TCPCLOSE: ERROR
Socket number error
+TCPCLOSE:0,Link Closed
The TCP connection is disconnected.
Remarks
The query format is applicable to E9C33424 and later versions.
9.9 Setting Up UDP Connection: +UDPSETUP
Description
To set up a UDP connection
Format
AT+UDPSETUP=[n],<ip>,<port>[,<recv_mode>]<CR>
Parameter
<n>: Socket number, ranging from 0 to 5
The TE will allocate an idle ID to set up the connection if you do not set the value