From 8511ec054c0414b38c0282991aa9fb9271d078be Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Mon, 11 Sep 2017 09:29:53 +0300 Subject: [PATCH] implement IPAddress localIP() --- TinyGsmClientA6.h | 6 +++++- TinyGsmClientSIM800.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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