WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
89
Add
0x0d 0x0a
to the end of the data. You can identify the end based on <
length
>.
Return Value
N/A
Example
+UDPRECV: 0,10,1234567890
10-byte data is successfully received
on socket 0. The data is 1234567890.
Remarks
N/A
9.12 Closing UDP Connection: +UDPCLOSE
Description
To close the UDP connection
Format
AT+UDPCLOSE=<n><CR>
AT+UDPCLOSE=?<CR>
Parameter
<n>: Socket number, ranging from
0
to
5
Return Value
If
<n>
is illegal, the module returns: +UDPCLOSE: ERROR.
Otherwise, the module returns
+UDPCLOSE:<n>,OK
.
Example
AT+UDPCLOSE=1
OK
+UDPCLOSE:1,OK
The TCP connection on socket 1 is closed
successfully.
AT+UDPCLOSE=?
+UDPCLOSE: (0-5)
OK
Query the value range of socket numbers
that UDP connection is closed.
AT+UDPCLOSE=2
+UDPCLOSE:ERROR
No UDP connection is set up on socket 2.
AT+UDPCLOSE=55
+UDPCLOSE: ERROR
Socket number error
Remarks
This querying format is applicable to E9C33424 and later versions.