Completing Lifx driver that uses Particle cloud; Particle phone app provides a nice...
[iotcloud.git] / version2 / src / RPi / IoTAddress.h
index a057d3d38b1b0ea1f89b2ced759bd71f8a69c6df..360caed507cfb3d5646fd3af9c4e1753c7f137db 100644 (file)
@@ -2,6 +2,8 @@
 #define _IOTADDRESS_HPP__
 #include <iostream>
 
+#include "application.h"
+
 using namespace std;
 
 
@@ -17,7 +19,7 @@ class IoTAddress
        public:
 
                // Constructor
-               IoTAddress(uint8_t* _sAddress) {
+               IoTAddress(IPAddress _sAddress) {
 
                        inetAddress = _sAddress;
                }
@@ -32,28 +34,13 @@ class IoTAddress
                }
 
 
-               uint8_t* getAddress() {
+               IPAddress getAddress() {
 
                        return inetAddress;
                }
 
-
-               /*string getURL(string strURLComplete) {
-
-                       return "http://" + inetAddress + strURLComplete;
-               }
-
-
-               // Custom hasher for IoTAddress / IoTDeviceAddress iterator
-               size_t hash(IoTAddress const& devAddress) const {
-
-                       std::hash<std::string> hashVal;
-                       return hashVal(inetAddress);
-               }*/
-
-
        // IoTAddress class properties
        protected:
-               uint8_t* inetAddress;
+               IPAddress inetAddress;
 };
 #endif