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:
yihui
Date:
Tue Mar 10 03:11:38 2015 +0000
Parent:
11:0184e407128e
Child:
13:379ce1d51b88
Commit message:
only LPC11UXX or LPC176X uses BufferedSerial, as other targets are not tested.

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	Tue Mar 10 03:04:27 2015 +0000
+++ b/GPRS/modem/modem.h	Tue Mar 10 03:11:38 2015 +0000
@@ -23,7 +23,11 @@
 #ifndef __MODEM_H__
 #define __MODEM_H__
 
+#if defined(LPC11UXX) || defined (LPC176X)
 #include "BufferedSerial.h"
+#else
+#include "mbed.h"
+#endif
 
 #define DEFAULT_TIMEOUT   	5
 
@@ -47,8 +51,13 @@
     Modem(PinName tx, PinName rx, int baudRate) : serialModem(tx, rx) {
         serialModem.baud(baudRate);
     };
+
+#if defined(LPC11UXX) || defined (LPC176X)
+	BufferedSerial serialModem;
+#else
+	Serial serialModem;
+#endif
 	
-	BufferedSerial serialModem;
 protected:
     /** Power on Modem
      */