RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
35
rak_disconnect
Syntax:
uint32_t cmd;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xB7,0x00,0x00,0x00
Command Code
Description:
It is used to disconnect the current wireless network.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xB7,0x00
Response Code
<STATUS
1
0
Command successful
-2
Current network is
disconnected
4.3 Socket Operation Commands
4.3.1 TCP Server
Command:
rak_tcp_server
Syntax:
typedef struct {
uint32_t cmd;
uint16_t dummy;
uint16_t port;
}rak_server_t;
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xB4,0x00,0x00,0x00
Command Code
dummy
2
Invalid data
port
2
1-65535
Local port number