User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 160
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
UINT16 header_len;
UINT16 data_len;
UINT8 buffer[1200];
}__attribute__((packed));
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/welcome.php is the
webpage, then url_len = 12 (for
“/welcome.php”, www.website.com is
not included in the url ).
header_len
The length of the header of the HTTP
GET request.
data_len
This is the length of the data string.
buffer
Buffer contains actual values in the
order of IP Address, URL, Header and
Data.
Response
The structure for the HTTP POST Request‟s response 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 POST request is
pending.
1 More data pending