Example program for MTS WiFi Shield. Test that you can connect to a network.
Dependencies: SocketModem mbed
Revision 11:a9117a40bde7, committed 2014-07-11
- Comitter:
- mfiore
- Date:
- Fri Jul 11 16:53:47 2014 +0000
- Parent:
- 10:e341fb0710ab
- Commit message:
- update test for STMicro Nucleo boards (tested with F401RE)
Changed in this revision
diff -r e341fb0710ab -r a9117a40bde7 SocketModem.lib --- a/SocketModem.lib Wed Jan 22 23:22:40 2014 +0000 +++ b/SocketModem.lib Fri Jul 11 16:53:47 2014 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/teams/Multi-Hackers/code/SocketModem/#efc4db23a564 +https://mbed.org/teams/Multi-Hackers/code/SocketModem/#e0a437f61854
diff -r e341fb0710ab -r a9117a40bde7 main.cpp --- a/main.cpp Wed Jan 22 23:22:40 2014 +0000 +++ b/main.cpp Fri Jul 11 16:53:47 2014 +0000 @@ -5,16 +5,15 @@ /* 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. +* SSID and security key. You may need to chage the security type. */ int main() { //Set the network parameters - std::string ssid = "belkin54g"; - std::string securityKey = "hackathon"; - Wifi::SecurityType securityType = Wifi::WPA; + std::string ssid = "your_wifi_ssid"; + std::string securityKey = "your_wifi_password"; + Wifi::SecurityType securityType = Wifi::WPA2; //Wait for wifi module to boot up for (int i = 10; i >= 0; i = i - 2) { @@ -23,7 +22,7 @@ } //Setup serial interface to WiFi module - MTSSerial* serial = new MTSSerial(PTD3, PTD2, 256, 256); + MTSSerial* serial = new MTSSerial(D8, D2, 256, 256); serial->baud(9600); //Setup Wifi class
diff -r e341fb0710ab -r a9117a40bde7 mbed.bld --- a/mbed.bld Wed Jan 22 23:22:40 2014 +0000 +++ b/mbed.bld Fri Jul 11 16:53:47 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/dc225afb6914 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file