implement IPAddress localIP()

This commit is contained in:
Volodymyr Shymanskyy
2017-09-11 09:29:53 +03:00
parent 5b0e72f6bc
commit 8511ec054c
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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