4 public static void main(String[] args) throws Exception {
7 Table t1 = new Table("http://dc-6.calit2.uci.edu/test.iotcloud/", "reallysecret", 321, -1);
11 IoTString ia = new IoTString(a);
12 t1.createNewKey(ia, 321);
18 byte[] bulbMacAdd = new byte[8];
19 bulbMacAdd[0] = (byte)0xD0;
20 bulbMacAdd[1] = (byte)0x73;
21 bulbMacAdd[2] = (byte)0xD5;
22 bulbMacAdd[3] = (byte)0x11;
23 bulbMacAdd[4] = (byte)0x42;
24 bulbMacAdd[5] = (byte)0xE5;
25 bulbMacAdd[6] = (byte)0x00;
26 bulbMacAdd[7] = (byte)0x00;
29 IoTDeviceAddress devAddr = new IoTDeviceAddress("192.168.1.4", 56700, 56700, false, false);
30 IoTUDP udp = new IoTUDP(devAddr);
31 LightBulb bulb = new LifxLightBulb(udp, bulbMacAdd);
35 IoTString iValueA = new IoTString(valueA);
37 System.out.println("Starting System");
43 IoTString testValA1 = t1.getCommitted(ia);
44 if ((testValA1 != null) && (testValA1.equals(iValueA) == true)) {
51 // for(int i = 0; i < 5;i++)
53 // System.out.println(i);
55 // Thread.sleep(1000);
58 // Thread.sleep(1000);