Receiving Data - RAK RAK411 Programming Manual

Spi-wifi module
Table of Contents

Advertisement

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
cmd
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
<CODE>
<SOCKET_FLAG>
<DATA_LEN>
<IP_PORT>
<IP_ADDR>
Bytes
Value
4
0xA2,0x00,0x00,0x00
Bytes
Value
2
0xC8,0x00
2
0-7
2
2
4
43
RAK411 PROGRAMMING MANUAL
Description
Command Code
Description
Response Code
Port descriptor
Data length
Port number
IP address
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
V1.7
COPYRIGHT ©
ETDX1603021415

Advertisement

Table of Contents
loading

Table of Contents