User guide

Redpine Signals, Inc. Proprietary and Confidential.  Page 161 
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
Structure Member 
Name 
Description 
0 – End of HTTP data 
offset 
This indicates the byte-offset from 
which the valid HTTP data is present 
in the response. This offset is with 
respect to the first byte of the 
received frame. 
nErrorCode 
Error code. 
0 :Success 
-191 : HTTP socket creation failed 
NOTE: The actual HTTP server response starts from the value in the “offset”  
4.10.8 DNS Request
1
Description 
This command is used to send the domain name to the module to resolve the IP 
address. The DNS Request can be issued only in a serial manner meaning only if 
DNS response is obtained for the current request, the next Request can be 
issued 
Relevance 
This command is relevant when the TCP/IP stack is enabled. 
Frame Body 
The following is the structure for the DNS Request frame body: 
#define MAX_NAME_LEN  150 
typedef struct TCP_CNFG_DNS_Req 
{  
UINT8 aDomainName [MAX_NAME_LEN]; 
}__attribute__ ((packed)) TCP_CNFG_DNS_Req;  
1
 Please check the Release Notes of the individual modules‟ software/firmware 
releases to check whether this feature is supported. 










