X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2FCpp%2FLifxtest%2FLightBulbTest_Stub.cpp;h=d811274cb1639dd70d01878fc5258c8d5f2e941d;hb=fed43b1232f674bd9dec130ea1bf624b71cbe26c;hp=f760f89345f6eeaa6463ab939f2503f8c400f227;hpb=c8e8fa46088ad115eb35414ae719754ad2bf39ee;p=iot2.git diff --git a/benchmarks/Cpp/Lifxtest/LightBulbTest_Stub.cpp b/benchmarks/Cpp/Lifxtest/LightBulbTest_Stub.cpp index f760f89..d811274 100644 --- a/benchmarks/Cpp/Lifxtest/LightBulbTest_Stub.cpp +++ b/benchmarks/Cpp/Lifxtest/LightBulbTest_Stub.cpp @@ -215,43 +215,6 @@ extern "C" void destroyLightBulbTest_Stub(void* t) { extern "C" void initLightBulbTest_Stub(void* t) { } -/*int main() { - return 0; -}*/ - -int main() -{ - - int send_port = 5010; - int recv_port = 5011; - //const char* skeletonAddress = "127.0.0.1"; - const char* skeletonAddress = "localhost"; - int rev = 0; - bool result = false; - - LightBulbTest_Stub *lbs = new LightBulbTest_Stub(send_port, recv_port, skeletonAddress, rev, &result); - cout << "Successfully instantiated stub!" << endl; - lbs->init(); - lbs->turnOn(); - this_thread::sleep_for (chrono::milliseconds(1000)); - lbs->turnOff(); - for (int i = 0; i < 2; i++) { - lbs->turnOff(); - cout << "Turning off!" << endl; - this_thread::sleep_for (chrono::milliseconds(1000)); - lbs->turnOn(); - cout << "Turning on!" << endl; - this_thread::sleep_for (chrono::milliseconds(1000)); - double hue = lbs->getHue(); - double saturation = lbs->getSaturation(); - cout << "Hue: " << hue << endl; - cout << "Saturation: " << saturation << endl; - this_thread::sleep_for (chrono::milliseconds(1000)); - } - //lbs->turnOff(); - cout << "Done controlling! Exit now!" << endl; - - delete lbs; - +int main() { return 0; }