User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 158
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
ipaddr_len
The length of the IP Address. This is
required since the IP address is sent
as a string in this frame. For example,
if the IP address of www.website.com
is 192.168.30.6, the ipaddr_len = 12
url_len
The length of the URL. For example, if
www.website.com/index.html is the
webpage, then url_len = 11 (for
“/index.html”, www.website.com is
not included in the url ).
header_len
The length of the header of the HTTP
GET request.
data_len
This value has to be assigned 0.
buffer
Buffer contains actual values in the
order of IP Address, URL, Header and
Data.
Response
The structure for the response to the HTTP GET Request is as follows:
struct TCP_EVT_HTTP_Data_t
{
UINT32 more;
UINT32 offset;
INT32 nErrorCode;
}__attribute__((packed));
Structure Member
Name
Description
more
This indicates whether more HTTP
data for the HTTP GET request is
pending.
1 – More data pending
0 – End of HTTP data
offset
This indicates the byte-offset from
which the valid HTTP data is present
in the response.
nErrorCode
Error code.
0 :Success