STM32F103C8T6 GPRS TCP
Dependents: STM32F103C8T6_GPRS_TCP
Fork of GPRS by
Diff: gprs.cpp
- Revision:
- 8:35feba458a38
- Parent:
- 7:1278e9dde24e
--- a/gprs.cpp Mon Apr 28 12:32:12 2014 +0000 +++ b/gprs.cpp Fri Jul 13 07:35:24 2018 +0000 @@ -76,7 +76,7 @@ return -1; } } - timeCnt.stop(); // stop timer + timeCnt.stop(); // stop timer timeCnt.reset(); // clear timer while(gprsSerial.readable()) { // display the other thing.. char c = gprsSerial.getc(); @@ -328,6 +328,10 @@ return 0; } +int GPRS::waitforReply(char *data) +{ + return waitForResp(data,DEFAULT_TIMEOUT); +} int GPRS::closeTCP(void) { sendCmd("AT+CIPCLOSE\r\n");