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 08d8ff0f4c4f7e468e83abfeb856724a321d81e9..61d791460fac2d4ba0ef7d58f008d44397940be9 100644 (file)
@@ -316,7 +316,9 @@ public class MainActivity extends AppCompatActivity {
 
             try {
                 Log.e("Ali::::", "Here1");
 
             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");
                 Log.e("Ali::::", "Here2");
                 t1.rebuild(); // update
                 Log.e("Ali::::", "Here3");
index 46df781187376e224e522ab6ef8bdce863c6cb3a..4b140993ffe28559ff5e53c0c60dc61239c0b66c 100644 (file)
@@ -90,7 +90,9 @@ class LightsController {
 
         Table t1 = null;
         try {
 
         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) {
 
             t1.rebuild();
         } catch (Error e) {