-
-/*void Lifxtest::init() {
-
- unordered_set<void*>* bulbSet = lifx_light_bulb->values();
- //for (unordered_set<void*>::const_iterator itr = bulbSet->begin(); itr != bulbSet->end(); ++itr) {
- log << "Get into Lifxtest init()!" << endl;
- for (auto itr = bulbSet->begin(); itr != bulbSet->end(); ++itr) {
- log << "Iteration init()!" << endl;
- //LightBulb* lifx = (LightBulb*) *itr;
- LightBulbTest* lifx = (LightBulbTest*) *itr;
- log << "Getting object!" << endl;
- lifx->init();
- log << "Executing init!" << endl;
- this_thread::sleep_for (chrono::milliseconds(1000));
-
- for (int i = 0; i < 10; i++) {
-
- lifx->init();
-// lifx->turnOff();
- //cout << "Turning off!" << endl;
- log << "Turning off!" << endl;
- this_thread::sleep_for (chrono::milliseconds(1000));
-// lifx->turnOn();
- //cout << "Turning on!" << endl;
- log << "Turning on!" << i << endl;
- this_thread::sleep_for (chrono::milliseconds(1000));
- }
-
-*/
-/* for (int i = 2500; i < 9000; i += 100) {
- //cout << "Adjusting Temp: " << i << endl;
- log << "Adjusting Temp: " << i << endl;
- lifx->setTemperature(i);
- this_thread::sleep_for (chrono::milliseconds(100));
- }
-
- for (int i = 9000; i > 2500; i -= 100) {
- //cout << "Adjusting Temp: " << i << endl;
- log << "Adjusting Temp: " << i << endl;
- lifx->setTemperature(i);
- this_thread::sleep_for (chrono::milliseconds(100));
- }
-
- for (int i = 100; i > 0; i -= 10) {
- //cout << "Adjusting Brightness: " << i << endl;
- log << "Adjusting Brightness: " << i << endl;
- lifx->setColor(lifx->getHue(), lifx->getSaturation(), i);
- this_thread::sleep_for (chrono::milliseconds(500));
- }
-
- for (int i = 0; i < 100; i += 10) {
- //cout << "Adjusting Brightness: " << i << endl;
- log << "Adjusting Brightness: " << i << endl;
- lifx->setColor(lifx->getHue(), lifx->getSaturation(), i);
- this_thread::sleep_for (chrono::milliseconds(500));
- }
- lifx->turnOff();
- }
-
- log << "End of iteration.. closing!" << endl;
- log.close();
- //while(true) { } // Testing infinite loop - will need to do "pkill IoTSlave"
-}*/
-
-