RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
39
Description:
Returns a hexadecimal after this command is to create a UDP listening locally on the
specified port, create success identifier (Socket ID), waiting to receive the remote port data.
If the remote port to send data to this port, the received data will be included in each other's
IP and port information; if other modules need to reply to a message, you need to specify
each other's IP and port number information when sending data, only reply. UDP server
applications more flexible, capable of receiving unicast and broadcast messages and can
send data to the specified IP and port initiative.
Note: The port number LSB first.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xB2,0x00
Response Code
<SOCKET_FLAG>
2
0--7
Socket identifier
<STATUS>
1
0
Command successful
-2
Failed to create
-3
Failed to bind
-4
Target port connection error
4.3.5 UDP multicast
Command:
rak_multicast
Syntax:
typedef struct {
uint32_t cmd;
uint32_t dest_addr;
uint16_t dest_port;
uint16_t local_port;
}rak_client_t;
Parameter: