mbed 5.4 with sleep mode

Dependencies:   C027_Support mbed-dev

Fork of C027_SupportTest_coap by Umar Naeem

Revision:
28:334263983fcd
Parent:
27:fe3b383dd4ec
Child:
29:16f1037626e3
Child:
30:062717f25e41
--- a/main.cpp	Fri Dec 12 07:50:45 2014 +0000
+++ b/main.cpp	Fri Dec 12 07:54:19 2014 +0000
@@ -48,7 +48,7 @@
 #endif
     // Create the modem object
     MDMSerial mdm;
-    mdm.setDebug(4); // enable this for debugging issues 
+    //mdm.setDebug(4); // enable this for debugging issues 
     // initialize the modem 
     MDMParser::DevStatus devStatus = {};
     MDMParser::NetStatus netStatus = {};
@@ -86,9 +86,7 @@
 
         // join the internet connection 
         MDMParser::IP ip = mdm.join(APN,USERNAME,PASSWORD);
-        if (ip == NOIP)
-            printf("Not joined");
-        else
+        if (ip != NOIP)
         {
             mdm.dumpIp(ip);
             printf("Make a Http Post Request\r\n");