
Neo_WM620 WCDMA Module AT Command Set
Copyright © Neoway Technology Co., Ltd
61
<length>: The length of the data received
<data>: The data received
Add
0x0d 0x0a
to the end of the data. You can identify the end based on
<length>
.
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.7 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 link is closed.
AT+TCPCLOSE=99
+TCPCLOSE: ERROR
Socket number error
+TCPCLOSE:0,Link Closed
The TCP link is disconnected.
Remarks
The query format is supported by E9C33424 and later versions.
9.8 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 of
[n]
.
<ip>: Destination IP address, in
xx.xx.xx.xx
format
<port>: Destination port ID in decimal ASCII code
<recv_mode>: Data receiving mode. The default value is 0.