diff --git a/TinyGsmClientA6.h b/TinyGsmClientA6.h index f6d8731..20ae5de 100644 --- a/TinyGsmClientA6.h +++ b/TinyGsmClientA6.h @@ -384,7 +384,11 @@ public: return res; } - IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; + IPAddress localIP() { + IPAddress res; + res.fromString(getLocalIP()); + return res; + } /* * Phone Call functions diff --git a/TinyGsmClientSIM800.h b/TinyGsmClientSIM800.h index ef17935..cddd99f 100644 --- a/TinyGsmClientSIM800.h +++ b/TinyGsmClientSIM800.h @@ -473,7 +473,11 @@ public: return res; } - IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; + IPAddress localIP() { + IPAddress res; + res.fromString(getLocalIP()); + return res; + } /* * Phone Call functions