Page 1 of 1

GET or POST to web server using WiFly Shield in BASIC

Posted: Thu Jan 24, 2013 9:35 pm
by basicchip
Here is some sample code that will use a WiFly (Roving Networks aka MicroChip) shield to do an HTTP GET or POST to a webserver.

This is a good way to use WiFi and gather data on an ARM

Re: GET or POST to web server using WiFly Shield in C

Posted: Thu Jan 24, 2013 9:39 pm
by basicchip
And this is an example of the code written in C

Re: GET or POST to web server using WiFly Shield in BASIC

Posted: Thu Jan 24, 2013 10:25 pm
by basicchip
some notes --

Sends and receives UDP
Connects to a local server to do POST or GET
Connects to a remote server to do POST or GET
Shows an example GET from www.time.gov to get the current time
Serves a web page that displays that current time and hit count

Users must fill in their own IP addresses but it should be documented well enough.