RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
22
Parameter
Bytes
Value
Description
<CODE>
2
0xA3,0x00
Response Code
<AP_NUM>
2
0x08,0x00
Scan to the number of
wireless networks, up to 8
<STATUS>
1
0
Command successful
-2
Command failed
4.2.2 Getting Scanned Information
Command:
rak_getscan
Syntax:
typedef struct {
uint32_t cmd;
uint32_t scan_num;
}rak_getscan_t;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xA4,0x00,0x00,0x00
Command Code
Scan_num
4
1—10
The amount of network information
is obtained if the scan_num is
greater than the actual number of
scans, then the number of network
information is returned
Description:
It is used to get the scanned network information.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xA4,
0x00
Response Code
<CHANNEL>
1
1--14
Channel
<RSSI>
1
-99--0
Channel intensity (negative value)
<SEC_MODE>
2
Bit7
Bit
6
Bit
5
Bit4
Bit3
Bit2
Bit1
Bit0
Wp
Wp
We
802.
Psk
Wep
Tkip
Ccmp