Example program for MTS WiFi Shield. Test that you can connect to a network.
Dependencies: SocketModem mbed
Diff: main.cpp
- Revision:
- 5:19044863e45c
- Parent:
- 4:6daf448c5b1c
- Child:
- 6:7c2bdcf9d302
--- a/main.cpp Sat Jan 04 06:02:38 2014 +0000 +++ b/main.cpp Sat Jan 04 20:29:00 2014 +0000 @@ -3,10 +3,17 @@ #include "Wifi.h" using namespace mts; +/* This example shows how to do a basic connectivity test using +* the MTS Wifi shield board. You will need to change the network +* SSID and security key, unless you are at the 2014 AT&T hackathon +* where you can use the defaults below. +*/ + int main() { + //Set the network parameters std::string ssid = "belkin54g"; - std::string securityKey = ""; + std::string securityKey = "hackathon"; Wifi::SecurityType securityType = Wifi::NONE; //Wait for wifi module to boot up