User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 82
FIGURE 4-5: SERVER RESPONSE
You can view the data you sent to the Roving Networks web server at http://rovingnet-
works.com/wiflys/view.
4.4.8 HTML Client Example: Posting UART Data to a Web server
The module can post serial UART data in ASCII or binary format automatically. In this
example, when the serial UART data comes in, the module connects and sends data
to the web server in the following format:
GET /server.php?value=<user serial data> \n\n
Use the following commands to set the parameters:
set ip proto 18 // Turn on HTTP mode = 0x10 and TCP
// mode = 0x2
set dns name www.rovingnetworks.com // Set the web server name
set ip host 0 // Turn on DNS
set ip remote 80 // Set the web server port, 80 is standard
set com remote GET$/server3.php?value=
// Set up the server application string
set sys auto 10 // Automatically connect every
// 10 seconds
set option format 1 // Send a HTML header
set uart mode 2 // Connect automatically using data
// trigger mode
save // Save the configuration to the
// configuration file
reboot // Reboot so that the settings take effect