Roving Networks WIFLY GSX Manuel d'utilisateur Page 40

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 60
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 39
WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 7/16/2010
809 University Avenue Los Gatos, CA 95032 Tel (408) 395-6539 info@RovingNetworks.com
~ 40 ~
13. Sending and Receiving Data via Web Server
WiFly can be setup to easily pull or post data to a web server.
Example: user wants to retrieve data from web server with this format:
http://www.webserver.com/ob.php?obvar=WEATHER
Settings:
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 then send this data:
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. Automatic-Advanced Web Server Modes
WiFly can be setup to automatically post and get with special HOST CPU support required!
set option format <value> Bitmapped value.
Bit of Format reg Function
0 Automatically send HTML data header based on broadcast interval.
1 Send users BINARY data (converted to ASCII hex )
2 Sample the GPIO and AtoD pins and format to ASCII hex
3 Appends
&id=
<
the value of the deviceid string set with “set opt
device <string>”>
4 Appends &rtc= <real time clock value in message as 32 bit HEX value
in format aabbccddeeff>
Vue de la page 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 59 60

Commentaires sur ces manuels

Pas de commentaire