WiSnap User Manual 2.21 04112011-JF
Page
49
of
66
Set ip proto 18
//enable HTTP and TCP protocols
Set com remote GET$/mike.php?ID=1234
//set up the string
Set sys auto 10
//auto connect every 10 seconds
Set option format 7
//send the header and sampled binary data converted to
ASCII
Set option sensor 0xFF
//sets sensor mask to sample all channels
Save
//save the configurations in config file
Reboot
//reboot so that the settings take effect
Result:
You will receive a 200 OK returned from the web server as seen in the screenshot below.
Example#2: Posting UART data to web server
The WiSnap module is capable of auto posting serial UART data in ASCII or Binary format. In this
example we will configure the WiSnap module such that when the serial UART data comes in, the
WiSnap will connect and automatically send data to the web server in the following format:
GET /mike.php?ID=<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$/mike.php?ID=
//set up the string
set sys auto 10
//auto connect every 10 seconds
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