RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
45
4.4 Save Parameters Commands
4.4.1 Storing Network Configuration Parameters
Command:
rak_storeconfig_data
Syntax:
typedef struct {
uint32_t cmd
uint32_t feature_bitmap;
uint8_t net_type;
uint8_t channel;
uint8_t sec_mode;
uint8_t dhcp_mode;
char ssid[32];
char psk[64];
ip_param_t ip_param;
ap_config_t ap_config;
}config_t
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xC0,0x00,0x00,0x00
Command Code
feature_bitmap
4
0x00,0x00,0x00,0x00
Switching features
net_type
1
0
Station
1
Ap
2
Ad-hoc
channel
1
0-13
Channel
sec_mode
1
0
Network is not encrypted
1
Network is encrypted
dhcp_mode
1
0
STA:Dhcp client
1
STA:ip static
ssid
32
ASCII
Network identifier
psk
65
ASCII
Network key