From bbe6d1074890bc1f062eaaf3397b11338cb3e25d Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Mon, 11 Sep 2017 09:02:49 +0300 Subject: [PATCH] Add function stubs --- TinyGsmClientA6.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/TinyGsmClientA6.h b/TinyGsmClientA6.h index b37e303..28391d3 100644 --- a/TinyGsmClientA6.h +++ b/TinyGsmClientA6.h @@ -107,7 +107,6 @@ public: } virtual int available() { - //DBG("available?"); TINY_GSM_YIELD(); if (!rx.size() && sock_connected) { at->maintain(); @@ -116,7 +115,6 @@ public: } virtual int read(uint8_t *buf, size_t size) { - //DBG("read:", size); TINY_GSM_YIELD(); size_t cnt = 0; while (cnt < size) { @@ -154,6 +152,13 @@ public: return sock_connected; } virtual operator bool() { return connected(); } + + /* + * Extended API + */ + + String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; + private: TinyGsm* at; uint8_t mux; @@ -361,15 +366,6 @@ public: return false; } - /* - sendAT(GF("+CIFSR")); - String data; - if (waitResponse(10000L, data) != 1) { - data.replace(GSM_NL, ""); - return false; - } - */ - return true; } @@ -444,6 +440,10 @@ public: * Battery functions */ + uint16_t getBattVoltage() TINY_GSM_ATTR_NOT_AVAILABLE; + + int getBattPercent() TINY_GSM_ATTR_NOT_AVAILABLE; + private: bool modemConnect(const char* host, uint16_t port, uint8_t* mux) {