Copyright © Neoway Technology Co., Ltd
AT+UDPSEND=0,10
>
+UDPSEND:0,OPERATION EXPIRED
After the data sending command is
input and > is returned, no more data
is entered in one minute. Then the
expiration information is displayed.
Ensure that the UDP link is set up before sending UDP data.
The AT+IPSTATUS command is recommended to check the buffer size
before sending data.
The command supports only char type data if the AT+DATAFORMAT
command is not used to set the sending format.
8.3 Receiving UDP Data: +UDPRECV
+UDPRECV:<n>,<length>,<data><CR>
<n>: Socket number, ranging from 0 to 4
<length>: The length of the data received
<data>: The data received
Add 0x0d 0x0a to the end of the data. Identify the end based on <length>.
+UDPRECV: 0,10,1234567890
10-byte data is successfully received
on socket 0. The data is 1234567890.
+UDPRECV:
0,10,31323334353637383930
10-byte of data is received on socket
0. The data is
31323334353637383930 in ASCII
format.
8.4 Reading UDP Data: +UDPREAD
+UDPREAD: <n>,<length><CR>