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

Dependencies:   mbed mtsas

Revision:
18:7c94867f9412
Parent:
17:e2102f58f3c9
Child:
20:edc60053c31a
--- a/main.cpp	Mon Mar 23 18:07:23 2015 +0000
+++ b/main.cpp	Mon Mar 23 18:24:57 2015 +0000
@@ -4,7 +4,6 @@
 int main(){
     //Modify to match your apn if you are using an HSPA radio with a SIM card
     const char APN[] = "";
-    PinName reset_pin;
     
     //Sets the log level to INFO, higher log levels produce more log output.
     //Possible levels: NONE, FATAL, ERROR, WARNING, INFO, DEBUG, TRACE
@@ -16,33 +15,29 @@
     * pin (JP8 Pin 2) must be manually jumped to Serial1 RX (Shield pin D2)
     * and the MTSAS serial RX pin (JP9 Pin 2) pin must be manually jumped to
     * Serial1 TX (Shield pin D8).
-    * Uncomment the following lines to use the STMicro Nuceleo F401RE
+    * Uncomment the following line to use the STMicro Nuceleo F401RE
     */
     MTSSerialFlowControl* io = new MTSSerialFlowControl(D8, D2, D3, D6);
-    reset_pin = NC;
     
     /** Dragonfly
     * To configure the serial pins for the Dragonfly board, use:
     * RADIO_TX = pin PC_7, RADIO_RX = pin PC_6
     * RADIO_RTS = pin PB_10,RADIO_CTS = pin PB_12
-    * Uncomment the following lines to use the Dragonfly board
+    * Uncomment the following line to use the Dragonfly board
     */
     //MTSSerialFlowControl* io = new MTSSerialFlowControl(PC_7, PC_6, PB_10, PB_12);
-    //reset_pin = NC;
     
     /** Freescale KL46Z
     * To configure the serial pins for the Freescale KL46Z board, use MTSAS jumper 
-    * configuration B. Uncomment the following lines to use the Freescale KL46Z board
+    * configuration B. Uncomment the following line to use the Freescale KL46Z board
     */
     //MTSSerialFlowControl* io = new MTSSerialFlowControl(D2, D9, D3, D6);
-    //reset_pin = PTA_20;
     
     /** Freescale K64F
     * To configure the serial pins for the Freescale K64F board, use MTSAS jumper
-    * configuration A. Uncomment the following lines to use the Freescale K64F board
+    * configuration A. Uncomment the following line to use the Freescale K64F board
     */
     //MTSSerialFlowControl* io = new MTSSerialFlowControl(D1, D0, D3, D6);
-    //reset_pin = NC;
     
     //Sets the baud rate for communicating with the radio
     io->baud(115200);
@@ -55,7 +50,6 @@
         return 1;
     }
     Transport::setTransport(radio);
-    radio->configureSignals(D4,D7,reset_pin);
     
     //Set radio APN
     for (int i = 0; i < 10; i++) {