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
GET or POST to web server using WiFly Shield in BASIC
GET or POST to web server using WiFly Shield in BASIC
- Attachments
-
- WiFlyGETinBASIC.zip
- Sample code to do a GET over WiFi with WiFly shield
- (10.39 KiB) Downloaded 1358 times
Re: GET or POST to web server using WiFly Shield in C
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 1302 times
Re: GET or POST to web server using WiFly Shield in BASIC
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.
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.