RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
26
Descriptionr:
This command is used to assign static IP address for module.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xAD,0x00
Response Code
<STATUS>
1
0
Command successful
-2
Command failed
4.2.7 Setting DHCP Mode
Command:
rak_ipconfig_dhcp
Syntax:
typedef struct {
uint32_t cmd;
uint32_t mode;
} rak_ipdhcp_t ;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xAC,0x00,0x00,0x00
Command Code
mode
4
0= DHCP CLENT
Select DHCP Mode
1= DHCP SEVER
Description:
This command is used to set DHCP working mode.
Return Value:
DHCP SERVER
Parameter
Bytes
Value
Description
<CODE>
2
0xAC,0x00
Response Code
<STATUS>
1
0
Command successful
-2
Command failed