Merge branch 'original'

This commit is contained in:
Sara Damiano
2018-09-05 17:42:03 -04:00
19 changed files with 78 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ class TinyGsmSim800
//============================================================================//
//============================================================================//
// The Sim800 Internal Client Class
// The Internal SIM800 Client Class
//============================================================================//
//============================================================================//
@@ -121,6 +121,11 @@ public:
return write(&c, 1);
}
virtual size_t write(const char *str) {
if (str == NULL) return 0;
return write((const uint8_t *)str, strlen(str));
}
virtual int available() {
TINY_GSM_YIELD();
if (!rx.size() && sock_connected) {
@@ -337,6 +342,7 @@ public:
return false;
}
//Enable Local Time Stamp for getting network time
// TODO: Find a better place for this
sendAT(GF("+CLTS=1"));
if (waitResponse(10000L) != 1) {
return false;