ok
Diff: GPRS.h
- Revision:
- 9:2f5445178940
- Parent:
- 7:1278e9dde24e
- Parent:
- 8:1ee8ba65061a
--- a/GPRS.h Tue May 13 14:28:31 2014 +0000 +++ b/GPRS.h Tue May 13 14:32:33 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,11 +50,12 @@ * @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; }; - - /** Init GPRS module including SIM card check & signal strength & network check + + int powerCheck(void); + /** init GPRS module including SIM card check & signal strength & network check * @returns * 0 on success, * -1 on error