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

Dependencies:   mbed mtsas

Revision:
13:699045e9cce9
Parent:
12:23c052e020a9
Child:
15:ae7bfcdf9e6a
--- a/main.cpp	Tue Aug 12 21:46:46 2014 +0000
+++ b/main.cpp	Wed Aug 13 14:28:07 2014 +0000
@@ -36,13 +36,13 @@
     
     //Create radio object
     Cellular* radio = CellularFactory::create(io);
-    radio->configureSignals(D4,D7,RESET);
-    Transport::setTransport(radio);
     
     if (! radio) {
         logFatal("Failed to initialize radio");
         return 1;
     }
+    radio->configureSignals(D4,D7,RESET);
+    Transport::setTransport(radio);
     
     //Set radio APN
     for (int i = 0; i < 10; i++) {