EasyManua.ls Logo

Neoway N11 V2 - Closing UDP Link (+UDPCLOSE)

Neoway N11 V2
134 pages
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...
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
68
Parameter
<n>: socket number, ranging from 0 to 4
<length>: maximum length of data allowed to read
Return Value
See the Example
Example
+UDPRECV: 0
AT+UDPREAD=0,100
+ UDPREAD: 0,10,1234567890
OK
Socket 0 receives data.
Read data.
The data read is 1234567890.
Remark
N/A
8.5 Closing UDP Link: +UDPCLOSE
Description
To close the UDP link
Format
AT+UDPCLOSE=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 4
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 link on socket 1 is closed
successfully.
AT+UDPCLOSE=5
+UDPCLOSE: ERROR
Socket number error
Remarks
N/A

Table of Contents

Related product manuals