#define _IOTADDRESS_HPP__
#include <iostream>
+#include "application.h"
+
using namespace std;
public:
// Constructor
- IoTAddress(uint8_t* _sAddress) {
+ IoTAddress(IPAddress _sAddress) {
inetAddress = _sAddress;
}
}
- 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