Had to fork with a different name, because of some incompatibility issues.

Dependencies:   MQTT

Revision:
8:cb2c98efdca8
Parent:
7:b14763b63562
Child:
10:665cfb0da4c5
--- a/DeviceClient.cpp	Sat Jun 09 23:26:43 2018 +0000
+++ b/DeviceClient.cpp	Sun Jun 10 20:19:55 2018 +0000
@@ -248,6 +248,7 @@
     return (attemptNumber * attemptNumber * 5);
 }
 
+
 /**
  * Returns the connection status, connected or disconnected.
  */
@@ -396,3 +397,14 @@
         memmove(pos, pos + 1, strlen(pos) + 1);
     return buf;
 }
+
+char* DeviceClient::ipaddress() {
+    //char iplocal[25];
+    
+    NetworkInterface* net = mqttNetwork->getEth();
+    //const char* ip = net->get_ip_address();
+    
+    //strcpy(iplocal,ip);
+    //return iplocal;
+    return (char*)net->get_ip_address();
+}