RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
32
Description:
It is used to convert domain to the corresponding IP address, the domain
must be configured available DNS server.
Return Value:
Parameter
Bytes
Value
Description
<CODE>
2
0xAF,0x00
Response Code
<ADDR>
4
Ip address
<STATUS>
1
0
Command successful
-2
DNS resolution failure
4.2.14 PING
Command:
rak_ping
Syntax:
Typedef struct {
uint32_t cmd;
uint32_t hostaddr;
uint32_t count;
uint32_t size;
}rak_ping_t;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xB0,0x00,0x00,0x00
Command Code
hostaddr
4
String
Specified host
count
2
Number of packets
size
2
1--1400
Packet
size,
maximum
1400byte
Description:
It is used to run the ping command.
Return Value:
Parameter
Bytes
Value
Description