Changes
authorAli Younis <ayounis@uci.edu>
Thu, 18 May 2017 20:12:52 +0000 (13:12 -0700)
committerAli Younis <ayounis@uci.edu>
Thu, 18 May 2017 20:12:52 +0000 (13:12 -0700)
version2/src/Control/app/src/main/java/com/example/ali/control/MainActivity.java
version2/src/java/light_fan_embed_benchmark/LightsController.java

index 08d8ff0..61d7914 100644 (file)
@@ -316,7 +316,9 @@ public class MainActivity extends AppCompatActivity {
 
             try {
                 Log.e("Ali::::", "Here1");
-                t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 1000, -1, MainActivity.this);
+                t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 1000, 6000, MainActivity.this);
+                t1.addLocalCommunication(353211, "192.168.2.192", 6000);
+
                 Log.e("Ali::::", "Here2");
                 t1.rebuild(); // update
                 Log.e("Ali::::", "Here3");
index 46df781..4b14099 100644 (file)
@@ -90,7 +90,9 @@ class LightsController {
 
         Table t1 = null;
         try {
-            t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 321, -1);
+            t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 321, 6000);
+            t1.addLocalCommunication(1000, "192.168.2.50", 6001);
+
             t1.rebuild();
         } catch (Error e) {