RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
43
Description:
This command is used to send data to the target (port identifier), the maximum data
length is 1400, buffer can be data in any format, module will send data without any
treatment. If the connection is a TCP connection, then the destination IP and destination port
can be omitted, entered with value 0. When the connection is UDP, if not specified, the value
can be 0. If it needs to send data to specified target as LUDP, fill in the target IP, and target
port number. Port numbers are in sorted in ascending order.
Return Value:N/A
4.3.9 Receiving Data
Command:
rak_recv_data
Syntax:
uint32_t cmd;
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xA2,0x00,0x00,0x00
Command Code
Description:
This command is to read data commands of module. The results can be
command results, or the network data and connection information. The data type
can be viewed by CODE.
Return Value:
<CODE> =0xC8 Receiving data
Receiving data from network
Parameter
Bytes
Value
Description
<CODE>
2
0xC8,0x00
Response Code
<SOCKET_FLAG>
2
0-7
Port descriptor
<DATA_LEN>
2
Data length
<IP_PORT>
2
Port number
<IP_ADDR>
4
IP address