BitPipe™Cellular Dev
-Kit
User Guide
Copyright 2017 Briowireless Inc.
19
Figure 18 GET Request
5-
To fetch the contents of a web page, enter a GET request in the text
box above the “Send
Payload” button
(see Figure 18).
a.
For example,
GET / HTTP/1.1
b.
Add a carriage return and line feed twice
(Press “Enter”
twice)
6-
Click the “Send Payload” button
7-
The Received Data text box in Figure 18 will contain the result of the HTTP GET request.
7.2.2
Sending and Receiving data using TCP/IP
Below is an example of the steps used to exchange data with a server over TCP/IP. The example uses a
public TCP echo server on the internet.
1-
Select
the “IP
Connectivity
” tab
and then, select the “TCP” tab.
2-
Enter the desired URL or IP address
in the “Hostname (or IP address)”
text box (u-blox provides a
public TCP echo server at dragon.u-blox.com: 195.34.89.241).
3-
Enter the port number to exchange data (on the server above, the port number is 7).
4-
Click on
“Initiate Connection” to
open a TCP socket with the server information entered in the last
two steps. If a connection was previously established with another server, it will first have to be
closed by clicking on
“Close connection”.
5-
Enter a message
in the text box above the “Send Payload” button.
6-
Click the “Send
Payload
” button
7-
The response content will be displayed in the “Received Data” section