Changes in classes: new concept for latest value + all types of events generated...
[smartthings-infrastructure.git] / BeaconSensor / BeaconSensor.groovy
index 5f07e4cf75a66baf7af150e2e4aa7c15b5d497a7..1aafbb4a11731007655f1639f032cb06fcbc1778 100644 (file)
@@ -20,8 +20,8 @@ public class BeaconSensor {
        }
 
        def setValue(String value) {
-               this.presenceLatestValue = presence
                println("the beacon sensor with id:$id is triggered to $value!")
+               this.presenceLatestValue = value
                this.presence = value
                this.currentPresence = value
        }