}
}
- /*public static void main(String[] args) throws Exception {
+ /* TODO: Uncomment this part to do sprinkler test
+ public static void main(String[] args) throws Exception {
System.out.println("Executing main function!");
- IoTDeviceAddress iotDevAdd1 = new IoTDeviceAddress("192.168.0.129", 10009, 80, false, false);
- IoTDeviceAddress iotDevAdd2 = new IoTDeviceAddress("192.168.0.84", 10010, 80, false, false);
+ //IoTDeviceAddress iotDevAdd1 = new IoTDeviceAddress("192.168.0.129", 10009, 80, false, false);
+ //IoTDeviceAddress iotDevAdd2 = new IoTDeviceAddress("192.168.0.84", 10010, 80, false, false);
+ IoTDeviceAddress iotDevAdd1 = new IoTDeviceAddress(args[0], 10009, 80, false, false);
+ IoTDeviceAddress iotDevAdd2 = new IoTDeviceAddress(args[1], 10010, 80, false, false);
Set<IoTDeviceAddress> setBlossom = new HashSet<IoTDeviceAddress>();
Set<IoTDeviceAddress> setLocal = new HashSet<IoTDeviceAddress>();
setBlossom.add(iotDevAdd1);
BlossomSprinkler bs = new BlossomSprinkler(channelID, iotsetBlossom, iotsetLocal);
bs.init();
System.out.println("Finished init()");
- Thread.sleep(30000);
- bs.setZone(0, true, 120);
+ bs.setZone(0, true, 60);
System.out.println("Finished setZone!");
}*/