Copyright © Neoway Technology Co., Ltd
<n>: socket number, ranging from 0 to 4
<length>: maximum length of data allowed to read
+UDPRECV: 0
AT+UDPREAD=0,100
+ UDPREAD: 0,10,1234567890
OK
Socket 0 receives data.
Read data.
The data read is 1234567890.
8.5 Closing UDP Link: +UDPCLOSE
<n>: Socket number, ranging from 0 to 4
If the value of <n> is illegal, the module returns: +UDPCLOSE: ERROR.
Otherwise, the module returns +UDPCLOSE:<n>,OK.
AT+UDPCLOSE=1
+UDPCLOSE: 1,OK
The TCP link on socket 1 is closed
successfully.
AT+UDPCLOSE=5
+UDPCLOSE: ERROR