RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
25
Description:
It is used to connect an AP/ADHOC network or establish a specified AP
Network.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xA6,0x00
Response Code
<STATUS>
1
0
Command successful
-2
Cannot find the SSID
-3
Command failed
4.2.6 Configuring Static IP Address
Command:
rak_set_ipstatic
Syntax:
typedef struct {
uint32_t cmd;
uint32_t addr;
uint32_t mask;
uint32_t gw;
uint32_t dnssvr1;
uint32_t dnssvr2;
}rak_ipstatic_t;
Parameter:
Parameter
Bytes
Value
Description
cmd
4
0xAD,0x00,0x00,0x00
Command Code
addr
4
0xC0,0xA8,0x07,0x01
IP address
mask
4
0xFF,0xFF,0xFF,0x00
subnet mask
gw
4
0xC0,0xA8,0x07,0x01
gateway
dnssvr1
4
0xC0,0xA8,0x07,0x01
DNS server 1
dnssvr2
4
0x00,0x00,0x00,0x00
DNS server 2