From 22e7464a083d817dcc5cfdb2d10202cd3f2c7051 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Mon, 11 Sep 2017 09:18:35 +0300 Subject: [PATCH] Add localIP() --- TinyGsmClientA6.h | 2 ++ TinyGsmClientESP8266.h | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/TinyGsmClientA6.h b/TinyGsmClientA6.h index 28391d3..f6d8731 100644 --- a/TinyGsmClientA6.h +++ b/TinyGsmClientA6.h @@ -384,6 +384,8 @@ public: return res; } + IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; + /* * Phone Call functions */ diff --git a/TinyGsmClientESP8266.h b/TinyGsmClientESP8266.h index ac6e697..41e1dc8 100644 --- a/TinyGsmClientESP8266.h +++ b/TinyGsmClientESP8266.h @@ -134,6 +134,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; @@ -237,6 +244,10 @@ public: return waitResponse(10000L) == 1; } + String getLocalIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; + + IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; + private: int modemConnect(const char* host, uint16_t port, uint8_t mux) {