User manual
WiFly GSX/EZX
www.rovingnetworks.com WiFly-RN-UM 11/9/2011
809 University Avenue • Los Gatos, CA 95032 • Tel (408) 395-6539 • info@RovingNetworks.com
~ 60 ~
In the above example, the data format is
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
13.6. Examples using the HTML client
Example#1: Auto posting sensor data:
In this example, we will connect to the web server at www.rovingnetworks.com/server.php?value= and
send the sensor data as a web post to the web server every 60 seconds.
Set the network connections as described above. The other parameters that we need to set are described
below.
set dns name www.rovingnetworks.com //set up the URL of the server
set ip host 0 //instructs RN-370 to use DNS address of host server
set ip remote 80 //standard web server port
set ip proto 18 //enable HTTP and TCP protocols
set com remote GET$/server.php?value= //set up the string
set sys auto 10 //auto connect every 10 seconds
set option format 7 //send the header and sampled binary data converted to ASCII
set q sensor 0xFF //sets sensor mask to sample all channels
save //save the configurations in config file
reboot //reboot so that the settings take effect
Result:
You will receive a 200 OK returned from the web server as seen in the screenshot below.