RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
24
uint32_t cmd;
uint32_t channel;
}rak_channel_t;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xAB,0x00,0x00,0x00
Command Code
channel
4
0--13
SettingAP / Ad-Hoc channel
Description:
It is used to set network channel.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xAB,0x00
Response Code
<STATUS>
1
0
Command successful
-2
Command failed
4.2.5 Connecting Wireless Network
Command:
rak_connect
Syntax:
typedef struct {
uint32_t cmd;
uint32_t mode;
char ssid[32];
}rak_conn_t;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xA6,0x00,0x00,0x00
Command Code
mode
4
0=station
Select network mode
1=ap
2=ad-hoc
Ssid
32
ASCII
SSID