Sample project to connect to AT&T M2X from the STM32 Nucleo + MTS WiFi shield

Dependencies:   M2XStreamClient SocketModem jsonlite mbed

Fork of STM32_MTS_Wifi_Connect_M2X by AT&T Developer Summit Hackathon 2016

Revision:
11:a9117a40bde7
Parent:
8:fa93a2d07116
Child:
12:676ba8e7bea2
--- 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