Simple example program to demonstrate and test cellular connection using the MTSAS library (over PPP protocol)

Dependencies:   mbed mtsas

Revision:
4:8b02a6b67f4d
Parent:
3:f22ad66e049e
Child:
5:46e66c649006
Child:
6:9c490265dd91
--- a/main.cpp	Mon Jul 28 14:57:44 2014 +0000
+++ b/main.cpp	Mon Jul 28 15:09:18 2014 +0000
@@ -3,7 +3,11 @@
 
 int main(){
     //Modify to match your apn if you are using an HSPA radio with a SIM card
-    const char APN[] = "internet";
+    const char APN[] = "";
+    
+    //Sets the log level to INFO, which is about midway on priority levels
+    //Possible levels: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE
+    MTSLog::setLogLevel(MTSLog::INFO_LEVEL);
     
     /** STMicro Nucelo F401RE
     * The supported jumper configurations of the MTSAS do not line up with
@@ -64,7 +68,7 @@
             logError("Failed to ping google.com");
         }
         if (radio->ping("www.google.com") == true) {
-            logInfo("Successfully pinged google.com");
+            logInfo("Successfully pinged www.google.com");
             break;
         } else {
             wait(1);