rhr

Revision:
7:1278e9dde24e
Parent:
6:e508f9ee7922
diff -r e508f9ee7922 -r 1278e9dde24e gprs.h
--- a/gprs.h	Mon Feb 10 03:23:02 2014 +0000
+++ b/gprs.h	Mon Apr 28 12:32:12 2014 +0000
@@ -26,8 +26,9 @@
 #include <stdio.h>
 #include "mbed.h"
 
-#define DEFAULT_TIMEOUT     5
-#define SMS_MAX_LENGTH      16
+#define DEFAULT_TIMEOUT         5
+#define SMS_MAX_LENGTH          16
+
 
 enum GPRS_MESSAGE {
     MESSAGE_RING = 0,
@@ -49,10 +50,11 @@
      *  @param number default phone number during mobile communication
      */
     GPRS(PinName tx, PinName rx, int baudRate,char *number) : gprsSerial(tx, rx) {
-        gprsSerial.baud(baudRate);
+        //gprsSerial.baud(baudRate);
         phoneNumber = number;
     };
-
+    
+    int powerCheck(void);
     /** init GPRS module including SIM card check & signal strength & network check
      *  @returns
      *      0 on success