Changes
authorAli Younis <ayounis@uci.edu>
Sun, 14 May 2017 23:08:30 +0000 (16:08 -0700)
committerAli Younis <ayounis@uci.edu>
Sun, 14 May 2017 23:08:30 +0000 (16:08 -0700)
version2/src/java/iotcloud/CloudComm.java
version2/src/java/iotcloud/SlotBuffer.java
version2/src/java/light_fan_embed_benchmark/LightsController.java
version2/src/server/iotquery.h

index 5e60e3c..064fae0 100644 (file)
@@ -140,6 +140,12 @@ class CloudComm {
                        byte[] saltTmp = new byte[SALT_SIZE];
                        random.nextBytes(saltTmp);
 
+                       for(int i = 0; i < SALT_SIZE;i++)
+                       {
+                               System.out.println((int)saltTmp[i]&255);
+                       }
+
+
                        URL url = new URL(baseurl + "?req=setsalt");
                        
                        timer.startTime();
index 716d0f2..0bb5c8e 100644 (file)
@@ -7,7 +7,7 @@ package iotcloud;
  */
 
 class SlotBuffer {
-       static final int DEFAULT_SIZE = 128;
+       static final int DEFAULT_SIZE = 16;
 
        private Slot[] array;
        private int head;
index a8b7be2..bc13be6 100644 (file)
@@ -121,6 +121,7 @@ class LightsController {
 
             } catch (Error e) {
 
+                e.printStackTrace();
                 for (int i = 0; i < 3; i++) {
                     bulbs.get(i).setColor(0, 100, 100);
                 }
index 6ac5113..053a6db 100644 (file)
@@ -4,7 +4,7 @@
 #include "fcgio.h"
 #include "fcgi_stdio.h"
 
-#define DEFAULT_SIZE 128
+#define DEFAULT_SIZE 16
 #define OFFSET_MAX 0
 #define OFFSET_OLD 4
 #define OFFSET_NEW 12