GET or POST to web server using WiFly Shield in BASIC

Questions on other types of hardware and getting it talking to the ARM CPU
Post Reply
basicchip
Posts: 1028
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

GET or POST to web server using WiFly Shield in BASIC

Post 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
Attachments
WiFlyGETinBASIC.zip
Sample code to do a GET over WiFi with WiFly shield
(10.39 KiB) Downloaded 449 times



basicchip
Posts: 1028
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

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

Post by basicchip »

And this is an example of the code written in C
Attachments
WiFlyGETinC.zip
Sample code to GET or POST using a WiFly shield
(9.64 KiB) Downloaded 427 times

basicchip
Posts: 1028
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

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

Post 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.

Post Reply