Configuring Static Ip Address - RAK RAK411 Programming Manual

Spi-wifi module
Table of Contents

Advertisement

Description:
It is used to connect an AP/ADHOC network or establish a specified AP
Network.
Return Value:
Parameter
<CODE>
<STATUS>

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
cmd
addr
mask
gw
dnssvr1
dnssvr2
Bytes
Value
2
0xA6,0x00
1
0
-2
-3
Bytes
Value
4
0xAD,0x00,0x00,0x00
4
0xC0,0xA8,0x07,0x01
4
0xFF,0xFF,0xFF,0x00
4
0xC0,0xA8,0x07,0x01
4
0xC0,0xA8,0x07,0x01
4
0x00,0x00,0x00,0x00
Description
Response Code
Command successful
Cannot find the SSID
Command failed
Description
Command Code
IP address
subnet mask
gateway
DNS server 1
DNS server 2
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
25
RAK411 PROGRAMMING MANUAL
COPYRIGHT ©
ETDX1603021415
V1.7

Advertisement

Table of Contents
loading

Table of Contents