From 5d9cc16e20c0b823f29f96edaf26886ae66e9eeb Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Thu, 16 May 2019 12:16:08 -0400 Subject: [PATCH] made sequans virtual --- src/TinyGsmClientSequansMonarch.h | 45 ++----------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/src/TinyGsmClientSequansMonarch.h b/src/TinyGsmClientSequansMonarch.h index 02cd12b..c14aeb0 100644 --- a/src/TinyGsmClientSequansMonarch.h +++ b/src/TinyGsmClientSequansMonarch.h @@ -243,17 +243,15 @@ public: public: TinyGsmSequansMonarch(Stream& stream) - : stream(stream) + : TinyGsmModem(stream), stream(stream) { memset(sockets, 0, sizeof(sockets)); } + virtual ~TinyGsmSequansMonarch() {} /* * Basic functions */ - bool begin() { - return init(); - } bool init() { DBG(GF("### TinyGSM Version:"), TINYGSM_VERSION); @@ -472,16 +470,6 @@ public: } } - bool waitForNetwork(unsigned long timeout = 60000L) { - for (unsigned long start = millis(); millis() - start < timeout; ) { - if (isNetworkConnected()) { - return true; - } - delay(250); - } - return false; - } - /* * GPRS functions */ @@ -542,10 +530,6 @@ public: return res; } - IPAddress localIP() { - return TinyGsmIpFromString(getLocalIP()); - } - /* * Phone Call functions */ @@ -710,31 +694,6 @@ public: /* Utilities */ - bool commandMode(int retries = 2) { - streamWrite(GF("+++")); // enter command mode - return true; - } - - template - void streamWrite(T last) { - stream.print(last); - } - - template - void streamWrite(T head, Args... tail) { - stream.print(head); - streamWrite(tail...); - } - - bool streamSkipUntil(char c) { //TODO: timeout - while (true) { - while (!stream.available()) { TINY_GSM_YIELD(); } - if (stream.read() == c) - return true; - } - return false; - } - template void sendAT(Args... cmd) { streamWrite("AT", cmd..., '\r');