a library to use GPRS like ethernet or wifi, which makes it possible to connect to the internet with your GPRS module

Dependencies:   BufferedSerial

Dependents:   ThinkSpeak_Test roam_v1 roam_v2 finalv3

Fork of GPRSInterface by wei zou

Files at this revision

API Documentation at this revision

Comitter:
lawliet
Date:
Mon Apr 28 13:01:23 2014 +0000
Parent:
5:c4db857fb1be
Child:
7:1bdcfd6da2d0
Commit message:
make SerialModel to be public member.

Changed in this revision

GPRS/modem/modem.h Show annotated file Show diff for this revision Revisions of this file
--- a/GPRS/modem/modem.h	Mon Mar 03 06:06:14 2014 +0000
+++ b/GPRS/modem/modem.h	Mon Apr 28 13:01:23 2014 +0000
@@ -47,7 +47,8 @@
     Modem(PinName tx, PinName rx, int baudRate) : serialModem(tx, rx) {
         serialModem.baud(baudRate);
     };
-    
+	
+	Serial serialModem;
 protected:
     /** Power on Modem
      */
@@ -118,7 +119,6 @@
      */
     int sendCmdAndWaitForResp(const char* data, const char *resp, unsigned timeout,DataType type);
 
-    Serial serialModem;
     Timer timeCnt;
 
 private: