mbed 5.4 with sleep mode
Dependencies: C027_Support mbed-dev
Fork of C027_SupportTest_coap by
Diff: main.cpp
- Revision:
- 32:b838fcaba45e
- Parent:
- 31:a07d0f76dc81
- Child:
- 33:e27f40fada64
--- a/main.cpp Thu Aug 11 07:04:52 2016 +0000 +++ b/main.cpp Thu Aug 11 07:09:44 2016 +0000 @@ -49,7 +49,7 @@ GPSSerial gps; #endif // Create the modem object - MDMSerial mdm; // use mdm(D1,D0) if you connect the cellular shield to C027 + MDMSerial mdm; // use mdm(D1,D0) if you connect the cellular shield to a C027 //mdm.setDebug(4); // enable this for debugging issues // initialize the modem MDMParser::DevStatus devStatus = {}; @@ -88,7 +88,9 @@ // join the internet connection MDMParser::IP ip = mdm.join(APN,USERNAME,PASSWORD); - if (ip != NOIP) + if (ip == NOIP) + printf("Not able to join network"); + else { mdm.dumpIp(ip); printf("Make a Http Post Request\r\n");