WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
119
16.2 Receiving Data from the Client: +FUDPRECV(S)
Description
To receive and output data from the client
Format
+FUDPRECV(S):<ip>,<port>,<length><data><CR><LF>
Parameter
<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
Return Value
See the Example.
Example
+FUDPRECV(S):010.072.170.156,38061,000
10,1234567890
FUDP receives 10-byte data
(1234567890) from the client (IP:
10.72.170.156, 38061)
Remarks
This command is applicable to E9C33426 and later versions.
16.3 Sending Data to the Client: +FUDPSENDS
Description
To send data to the client
Format
AT+FUDPSENDS=<ip>,<port>,<length><CR>
Parameter
<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.
Return Value
See the Example.
Example
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
10 seconds timed out. No data is
input. The module returns ERROR.