RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
40
Description:
This command is to create a UDP multicast socket on the module, you can
specify the multicast IP multicast, in the group for data communications. Port
number is low before.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xC4,0x00
Response code
<SOCKET_FLAG>
2
0--7
Socket identifier
<STATUS>
1
0
Execute successfully
-2
Create failure
-3
Failure of binding
-4
The
target
port
connection error
4.3.6 Query TCP server connections
Command:
rak_get_tcps
Syntax:
typedef struct {
uint32_t cmd;
uint32_t tcpsever_flag;
}rak_tcpsever_status_t;
Parameter:
Parameter
Bytes
Value
Description
Parameter
Bytes
Value
Description
cmd
4
0xC4,0x00,0x00,0x00
Command code
dest_addr
4
224.0.0.1-239.255.255.255
Target
multicast
IP
address
dest_port
2
1-65535
Target port number
local_port
2
1-65535
Local port number