Socket Operation Commands; Tcp Server - RAK RAK411 Programming Manual

Spi-wifi module
Table of Contents

Advertisement

rak_disconnect
Syntax:
uint32_t cmd;
Parameter:
Parameter
Cmd
Description:
It is used to disconnect the current wireless network.
Return Value:
Parameter
<CODE>
<STATUS

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
cmd
dummy
port
Bytes
Value
4
0xB7,0x00,0x00,0x00
Bytes
Value
2
0xB7,0x00
1
0
-2
Bytes
Value
4
0xB4,0x00,0x00,0x00
2
2
1-65535
Description
Command Code
Description
Response Code
Command successful
Current network is
disconnected
Description
Command Code
Invalid data
Local port number
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
35
RAK411 PROGRAMMING MANUAL
COPYRIGHT ©
ETDX1603021415
V1.7

Advertisement

Table of Contents
loading

Table of Contents