Integrating D-Link alarm into Home Security benchmark
[iot2.git] / benchmarks / drivers / Java / DlinkAlarm / DlinkAlarm.java
index 6b0ee185b2c024dfd1d3bdf6e769afe27d66037e..e19b37545a61cf572b2d2fe89049105eaca6b805 100644 (file)
@@ -454,27 +454,6 @@ public class DlinkAlarm implements Alarm {
         // Return time since January 1, 1970 00:00:00 UTC in seconds
         return System.currentTimeMillis()/1000;
     }
-    
-    /*public static void main(String[] args) throws Exception {
-
-        String ipAddress = "192.168.1.183";
-        String devicePin = "215530";
-        IoTDeviceAddress iotAddress = new IoTDeviceAddress(ipAddress, 12345, 80, false, false);
-        Set<IoTDeviceAddress> setAddress = new HashSet<IoTDeviceAddress>();
-        setAddress.add(iotAddress);
-        IoTSet<IoTDeviceAddress> iotSetAddress = new IoTSet<IoTDeviceAddress>(setAddress);
-        
-        DlinkAlarm alarm = new DlinkAlarm(iotSetAddress, devicePin);
-        alarm.init();
-        // Set alarm
-        alarm.setZone(0, true, -1);
-        // Set alarm
-        alarm.setZone(0, false, 0);
-        // Set alarm
-        alarm.setZone(0, true, -1);
-        // Set alarm
-        alarm.setZone(0, false, 0);
-    }*/
 }