WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 9/16/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 45 ~
13.
Using HTML client feature
The WiFly GSX module has a built in HTML client. When enabled, the WiFly GSX module is capable of
getting or posting data to a web server. Using the HTML client, it is now possible to post serial and/or
sensor data to the host web server. This feature make is possible to provide Wi-Fi capabilities to
applications such as GPS units, remote sensors, weather station, etc.
Example:
User wants to retrieve data from web server with this format:
http://www.webserver.com/ob.php?obvar=WEATHER
Settings:
set ip proto 18
//enable html client
set dns name www.webserver.com
//name of your webserver
set ip address 0
// so WiFly will use DNS
set ip remote 80
// standard webserver port
set com remote 0
// turn off the REMOTE string so it does not interfere with the post
To make the connection the command would be:
open
or inline you can send
open www.webserver.com 80
The user’s microprocessor should write to the uart:
GET /ob.php?obvar=WEATHER \n\n
Where the \n is the LINEFEED character decimal 10 or hex 0xa.Two linefeeds are required so the web
server knows the page is complete.
13.1.
Built-in HTML Client Modes
WiFly can be setup to automatically post data to and get data from a web server without any external HOST
CPU. The advanced web features are enabled using the “set option format <mask>” command. This is a bit
mapped register. The functions of the bits are described in the table below: