Copyright © Neoway Technology Co., Ltd
11.2 Receiving Data from the Client: +FUDPRECV(S)
To receive and output data from the client
+FUDPRECV(S): <ip>,<port>,<length><data><CR><LF>
<ip>: IP address of the client
<port>: ID of the port for the client to communicate
<length>: Length of data received, byte
<data>: Data received
+FUDPRECV(S):
10.72.170.156,38061,10,1234567890
FUDP receives 10-byte data (1234567890)
from the client (IP: 10.72.170.156, 38061)
11.3 Sending Data to the Client: +FUDPSENDS
To send data to the client
AT+FUDPSENDS=<ip>,<port>,<length><CR>
<ip>: IP address of the client
<port>: ID of the port for the client to communicate
<length>: The length of the data to be sent, value ranges from 1 to 1024, unit: byte.
AT+FUDPSENDS=10.230.214.106,44416,10
>0123456789
OK
+FUDPSENDS:0,10
Send 10-byte data to the client
(IP: 10.230.214.106, 44416).
AT+FUDPSENDS=10.230.214.106,44416,10
+FUDPSENDS:ERROR
The listening is not enabled.
AT+FUDPSENDS=10.230.214.106,44416,10
>
+FUDPSENDS: Error!TimeOut
No data is input after 10 seconds.