Browse Source

Add localIP()

v_master
Volodymyr Shymanskyy 7 years ago
parent
commit
22e7464a08
2 changed files with 13 additions and 0 deletions
  1. +2
    -0
      TinyGsmClientA6.h
  2. +11
    -0
      TinyGsmClientESP8266.h

+ 2
- 0
TinyGsmClientA6.h View File

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


+ 11
- 0
TinyGsmClientESP8266.h 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) {


Loading…
Cancel
Save