RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
42
Description:
It is used to close the already opened socket identifier,Close port monitoring
or connection.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xB5,0x00
Response Code
<STATUS>
1
0
Command successful
-2
Specified port does not
exist
-3
Disable to close
4.3.8 Sending Data
Command:
rak_send_data
Syntax:
typedef struct {
uint32_t cmd;
uint32_t dest_addr;
uint16_t dest_port;
uint16_t socket_flag;
uint16_t len;
Char buffer[1400];
}rak_send_t;
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xB6,0x00,0x00,0x00
Command Code
dest_addr
4
Target IP address
dest_port
4
1-65535
Target port
flag
2
0-7
Socket identifier
len
2
1--1400
Data length
buffer
1--1400
Data