Roving Networks WIFLY GSX Manuel d'utilisateur Page 56

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 84
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 55
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
~ 56 ~
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.
Vue de la page 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 83 84

Commentaires sur ces manuels

Pas de commentaire