RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
41
cmd
4
0xCD,0x00,0x00,0x00
Command Code
tcpsever_flag
4
8-11
Query corresponding TCP server
Description:
By identifier corresponding server, TCP server queries the number of client
connections,and client information.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xCD,0x00
Response Code
<TCP_NUM>
1
The maximum number of connections
TCP Client 7 (0-7)
<TCP_FLAG>
1
TCP client identifier
<DEST_TCP_PORT>
2
TCP port number of the client
<DEST_TCP_IP>
4
TIP address of the TCP client
<STATUS>
1
0
Command successful
-2
Specifies the identifier does not exist
-3
The check fails
4.3.7 Closing Socket
Command:
rak_socket_close
Syntax:
typedef struct {
uint32_t cmd;
uint16_t dummy;
uint16_t flag;
}rak_close_t;
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xB5,0x00,0x00,0x00
Command Code
dummy
2
Invalid data
flag
2
0-11
Socket identifier