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;
}