EasyManua.ls Logo

Neoway M590E - Receiving UDP Data: +UDPRECV; Closing UDP Connection: +UDPCLOSE

Neoway M590E
65 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...
Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
33
+UDPSEND:0,10
AT+UDPSEND=0,2800
+UDPSEND:Data length error
2800-byte data fails to be sent on socket 0
because data length exceeds the limit.
Remarks
Ensure that the UDP connection has been set up before sending UDP data.
Before > is 0x0d, 0x0a.
3.8 Receiving UDP Data: +UDPRECV
Description
To receive UDP data
Format
<CR><LF>+UDPRECV:<n>,<length>,<data><CR><LF>
Parameter
<n>: Socket number, ranging from
0
to
5
<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
+UDPRECV: 0,10,1234567890
10-byte data is successfully received on
socket 0. The data is 1234567890.
Remarks
N/A
3.9 Closing UDP Connection: +UDPCLOSE
Description
To close the UDP connection
Format
AT+UDPCLOSE=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return Value
If the value of
<n>
is illegal, the module returns:
+UDPCLOSE: ERROR
.
Otherwise, the module returns
+UDPCLOSE:<n>,OK
.
Example
AT+UDPCLOSE=1
+UDPCLOSE: 1,OK
The TCP connection on socket 1 is closed
successfully.
AT+UDPCLOSE=2
+UDPCLOSE:ERROR
Socket number error
+UDPCLOSE:0,Link Closed
The TCP connection is closed.
The server sends UDP connection closing
command or the network encounters
abnormality or weak signals.
Remarks
N/A

Table of Contents

Related product manuals