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
~ 61 ~
Example#2: Posting UART data to web server
The WiFly module is capable of auto posting serial UART data in ASCII or Binary format. In this example
we will configure the WiFly module such that when the serial UART data comes in, the WiFly will connect
and automatically send data to the web server in the following format:
GET /server.php?value=<user serial data> \n\n
The other parameters that need to be 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 1 //send HTML header
set uart mode 2 //automatically connect using data Trigger mode
save //save the configurations in config file
reboot //reboot so that the settings take effect