Adjusting and cleaning up ZigbeeTest to install Vigilia ZigBee gateway and devices.
[iot2.git] / iotjava / iotrmi / Java / sample / TestClass.java
index a59518ab7003959a50f4c0aafb90cea1d1703d90..6d547ba518dea23b29193f274826312810057410 100644 (file)
@@ -139,19 +139,38 @@ public class TestClass implements TestClassInterface {
                    }
                }
            };
-               thread2.start();*/
+               thread2.start();
 
-               //return 1;
+               return 1;*/
                return sum;
        }
 
-       public void handleStruct(StructJ[] data) {
+       public StructJ[] handleStruct(StructJ[] data) {
 
                for (StructJ str : data) {
                        System.out.println("Name: " + str.name);
                        System.out.println("Value: " + str.value);
                        System.out.println("Year: " + str.year);
                }
+
+               StructJ test = new StructJ();
+               test.name = "Anonymous";
+               test.value = 1.33f;
+               test.year = 2016;
+
+               data[0] = test;
+
+               return data;
+       }
+
+
+       public EnumJ[] handleEnum(EnumJ[] en) {
+
+               for (EnumJ e : en) {
+                       System.out.println("Enum: " + e);
+               }
+               
+               return en;
        }