User manual
WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 7/16/2010
809 University Avenue • Los Gatos, CA 95032 • Tel (408) 395-6539 • info@RovingNetworks.com
~ 41 ~
13.1.1. Reading a page:
WiFly can be setup to automatically post with no HOST CPU:
set com remote GET$/ob.php?obvar=WEATHER // setup the string.
set sys auto 3 // auto connect every 3 seconds.
set option format 1 // auto send the header once connection is open
set ip proto 18 // turn on HTTP mode=0x10 + TCP mode = 0x2
NOTE1: when HTTP mode is set, the WiFly automatically appends the \n\n to the end of the packet.
NOTE2: if the html header contains spaces, the $ is required when entering the string. Space is the
command delimiter. When WiFly command parser sees $ it will convert this to a SPACE character.
13.1.2.
Posting data to a page:
WiFly can auto-post Serial UART data in ASCII or BINARY.
Example: users data is ASCII string….
set com remote GET$/userprog.php?DATA= // sample server application
set uart mode 2 // automatically connect using data TRIGGER mode
Then when the serial UART data comes in, WiFly auto connect, and will automatically send:
GET /userprog.php?DATA=<users serial data> \n\n
13.1.3.
Posting binary data:
Web servers expect ASCII data, so if the User data is binary, WiFly
can convert it.
Example: using the same settings as above but this this change: set option format 2
If incoming UART data = 6 bytes of binary data with hex values 0x01 0xAB 0x03 0xFF 0x05 0x06
Wifly will send this string to the webserver:
GET /userprog.php?DATA=01AB03FF0506 \n\n