Moving Java drivers; Creating iotruntime socket connections for C++; First version...
[iot2.git] / benchmarks / drivers / Cpp / LifxLightBulb / LifxLightBulb.cpp
1 #include <iostream>
2 #include <string>
3 #include "LifxLightBulb.hpp"
4 #include "IoTSet.hpp"
5 #include "IoTDeviceAddress.hpp"
6
7 using namespace std;
8
9 int main(int argc, char *argv[])
10 {
11         string macAddress = "D073D5128E300000";
12         string devIPAddress = "192.168.2.126";
13         IoTDeviceAddress devAddress(devIPAddress, 12345, 56700, false, false);
14         unordered_set<IoTDeviceAddress> myset = { devAddress };
15
16         IoTSet<IoTDeviceAddress> setDevAddress(myset);
17         LifxLightBulb *llb = new LifxLightBulb(setDevAddress, macAddress);
18         llb->init();
19
20         cout << "Generated LifxLightBulb object!" << endl;
21
22         delete llb;
23
24         return 0;
25 }