Completing Lifx driver that uses Particle cloud; Particle phone app provides a nice...
[iotcloud.git] / version2 / src / RPi / IoTAddress.h
1 #ifndef _IOTADDRESS_HPP__
2 #define _IOTADDRESS_HPP__
3 #include <iostream>
4
5 #include "application.h"
6
7 using namespace std;
8
9
10 // IoTAddress class for iotruntime
11 // Implemented based on IoTAddress.java that is used to wrap address
12 //
13 // @author      Rahmadi Trimananda <rahmadi.trimananda @ uci.edu>
14 // @version     1.0
15 // @since       2017-01-09
16
17 class IoTAddress
18 {
19         public:
20
21                 // Constructor
22                 IoTAddress(IPAddress _sAddress) {
23
24                         inetAddress = _sAddress;
25                 }
26
27
28                 // Constructor
29                 IoTAddress() {
30                 }
31
32
33                 ~IoTAddress() {
34                 }
35
36
37                 IPAddress getAddress() {
38
39                         return inetAddress;
40                 }
41
42         // IoTAddress class properties
43         protected:
44                 IPAddress inetAddress;
45 };
46 #endif