N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
77
11.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):
10.72.170.156,38061,10,1234567890
FUDP receives 10-byte data (1234567890)
from the client (IP: 10.72.170.156, 38061)
Remarks
N/A
11.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
>
+FUDPSENDS: Error!TimeOut
No data is input after 10 seconds.