Add localIP()

This commit is contained in:
Volodymyr Shymanskyy
2017-09-11 09:18:35 +03:00
parent bbe6d10748
commit 22e7464a08
2 changed files with 13 additions and 0 deletions

View File

@@ -384,6 +384,8 @@ public:
return res; return res;
} }
IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
/* /*
* Phone Call functions * Phone Call functions
*/ */

View File

@@ -134,6 +134,13 @@ public:
return sock_connected; return sock_connected;
} }
virtual operator bool() { return connected(); } virtual operator bool() { return connected(); }
/*
* Extended API
*/
String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
private: private:
TinyGsm* at; TinyGsm* at;
uint8_t mux; uint8_t mux;
@@ -237,6 +244,10 @@ public:
return waitResponse(10000L) == 1; return waitResponse(10000L) == 1;
} }
String getLocalIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
private: private:
int modemConnect(const char* host, uint16_t port, uint8_t mux) { int modemConnect(const char* host, uint16_t port, uint8_t mux) {