Example program for MTS WiFi Shield. Test that you can connect to a network.
Dependencies: SocketModem mbed
Revision 5:19044863e45c, committed 2014-01-04
- Comitter:
- jengbrecht
- Date:
- Sat Jan 04 20:29:00 2014 +0000
- Parent:
- 4:6daf448c5b1c
- Child:
- 6:7c2bdcf9d302
- Commit message:
- Updated the documentation in main
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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