Keep in mind, this solution is experimental and comes with no guarantees!
The RN-XV WiFly Module driver I published earlier has been tested successfully with the Sytech Designs ZigBee Module.
This is done by combining the driver together with the Gadgeteer Light project. No worries, attached you'll find a zip file with all dependencies included.
This is a short code sample:
// Initialises the WiFly module on socket 7 WiFlyGSX WifiModule = new WiFlyGSX(Gadgeteer.Board.Hardware.GetSerial(7)); // Enables wifi WifiModule.EnableDHCP(); WifiModule.JoinNetwork("Thoolen", 0, WiFlyGSX.AuthMode.WPA2_PSK, "MyPersonalSecretLab"); // Waits until we've got an IP string Ip = ""; while (true) { Ip = WifiModule.LocalIP; if (Ip != "0.0.0.0") break; Debug.Print("Waiting for an IP address..."); Thread.Sleep(1500); } // Prints some useful info Debug.Print(Ip); Debug.Print(WifiModule.MacAddress); // Performs a HTTP request HTTP_Client WebClient = new HTTP_Client(new WiFlySocket("www.netmftoolbox.com", 80, WifiModule)); HTTP_Client.HTTP_Response Response = WebClient.Get("/helloworld/"); Debug.Print(Response.ResponseBody);
Here's a picture of the full setup:
DSCN2653.JPG 124.33KB 236 downloads
This image contains:
- Netduino Go! Mainboard
- Sytech Designs ZigBee Module
- Roving Networks RN-XV Module
- Nwazet Stackable Plate