RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
28
Return Value:
4.2.9 Connecting Network by WPS
Command:
rak_wps
Syntax:
uint32_t cmd;
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xC3,0x00,0x00,0x00
Command Code
Description:
Open module WPS function via this command. After the success of WPS, the
module
automatically
saves
the
current
network
parameters,with
the
rak_storeconfig command.
Parameter
Bytes
Value
Description
<CODE>
2
0xC2,
0x00
Response Code
<SSID>
32
ASCII
SSID
<SEC_MO
DE>
1
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Wpa
2
Wpa
Wep
802.
1x
Psk
Wep
Tkip
Ccm
p
PSK
64
ASCII
Network password
<STATUS
>
1
0
Command successful
-2
cannot find the ap
-3
Failed to be added in router
-4
Failed to get dynamic IP
-6
Easy config failed