User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 81
The resulting string sent to the server is:
GET /userprog.php?DATA=0F3000001111222233334444555566667777\n\n
The data format for this example is:
4.4.7 HTML Client Example: Posting Sensor Data Automatically
In this example, the module connects to the web server at www.rovingnetworks.com/
server.php?value= and posts the sensor data to the web server every 60 seconds.
You set the network connections as described previously, and set additional parame-
ters.
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 7 // Send the header and sampled binary
// data converted to ASCII
set q sensor 0xFF // Set the sensor mask to sample all
// channels
save // Save the configuration to the config file
reboot // Reboot so that the settings take effect
After issuing these commands, the web server returns a 200 OK message, as shown
in Figure 4-5.
2 Bytes
GPIO
Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7
0F30 0000 1111 2222 3333 4444 5555 6666 7777