X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2Fother%2FZigbeeTest%2FWaterLeakSensor.java;h=75923a44171b1241165ee8252565c92ee8c5b115;hb=29139245e9e467770431976dae4bab726f08ccd1;hp=8a56aabf035be5a9bd8e24cdfb04dfb3f4511bc0;hpb=dc73888086445b67a93e0651199411fe4d8b1aa0;p=iot2.git diff --git a/benchmarks/other/ZigbeeTest/WaterLeakSensor.java b/benchmarks/other/ZigbeeTest/WaterLeakSensor.java index 8a56aab..75923a4 100644 --- a/benchmarks/other/ZigbeeTest/WaterLeakSensor.java +++ b/benchmarks/other/ZigbeeTest/WaterLeakSensor.java @@ -41,8 +41,6 @@ public class WaterLeakSensor implements IoTZigbeeCallback, SmartthingsSensor { @config private IoTSet devUdpAddress; @config private IoTSet devZigbeeAddress; - private int sensorId = 0; - public WaterLeakSensor(IoTSet dSet, IoTSet zigSet) { devUdpAddress = dSet; devZigbeeAddress = zigSet; @@ -138,18 +136,6 @@ public class WaterLeakSensor implements IoTZigbeeCallback, SmartthingsSensor { } } - public void setId(int id) { - - sensorId = id; - - } - - public int getId() { - - return sensorId; - - } - public int getValue() { int tmp = 0; @@ -213,7 +199,7 @@ public class WaterLeakSensor implements IoTZigbeeCallback, SmartthingsSensor { gettingLatestDataMutex.release(); try { for (SmartthingsSensorCallback cb : callbackList) { - cb.newReadingAvailable(this.getId(), this.getValue(), this.isActiveValue()); + cb.newReadingAvailable(this.getValue(), this.isActiveValue()); } } catch (Exception e) { e.printStackTrace();