aaaa
Dependencies: SeeedStudioTFTv2 TFT_fonts mbed
Fork of Seeed_TFT_Touch_Shield by
Diff: Modem.h
- Revision:
- 7:5cf5aeae1954
- Parent:
- 5:c1af1f8fa026
- Child:
- 11:575dfd388778
--- a/Modem.h Sat Oct 25 20:42:30 2014 +0000 +++ b/Modem.h Sat Oct 25 21:55:05 2014 +0000 @@ -5,8 +5,9 @@ extern SeeedStudioTFTv2 TFT; //extern Serial pc; enum GSM_MESSAGE { - MESSAGE_RING = 0, - MESSAGE_SMS = 1, + MESSAGE_NONE = 0 , + MESSAGE_RING = 1, + MESSAGE_SMS = 2, MESSAGE_ERROR }; @@ -28,6 +29,10 @@ Timer timeCnt; int loopHandle(void); char messageBuffer[SMS_MAX_LENGTH]; + char messageCopyBuffer[SMS_MAX_LENGTH]; + int updateBuffer(char c); + int mIndex ; + int mTypeState ; protected: int sendCmdWaitResp(char* cmd, char* response, int timeout);