www.rovingnetworks.com
Version 1.0r 9/21/2012
70
RN -W IFLYCR -U M
After issuing these commands, the web server returns a 200 OK message, as shown in Figure 16.
Figure 16. Server Response
You can view the data you sent to the Roving Networks web server at
http://rovingnetworks.com/wiflys/view
.
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 = 0x2set
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