The posted sample is a “Test Of Concept” that demonstrates one way to use the Fez.Spider gadgeteer with Ethernet,WiFi and a WebServer.
The code does nothing but prove (at least to me) that I can read and write to a Web page.
I am not out to deny GHI sales of WiFi modules but I had a NETGEAR WNCE2001 (A WiFi Bridge) laying around and I wanted to ‘see’ if it would work with my Spider. I first started out using a TCP Server and Client but I’m not smart enought to get it working. I could ‘write’ to the Spider but I never could figure out how to ‘read’ a message sent by the Spider. Oh Well… I gave up and started this project.
The Web Page does nothing but return “OK” to HttpWebRequests “CONNECT”, “POST”, “GET”, and “PUT”.
and only one WebServer.SetupWebEvent(“wifi”);
Michael Dodaro (Integral Design) has some code “.NET Gadgeteer Web Service Surveillance Camera” that
shows how to setup Web Events to a Web service.
See:
NOTE: I have only tested this code on my local internet (home)
Maybe someone smarter than I am (Most of you folks) could show me how I can ‘read’ from the Bridge. I was only able
to 'write. messages to the Spider. I could never get a Read event when sending a message from the Spider?
Have a GREAT DAY!