projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changes in classes: new concept for latest value + all types of events generated...
[smartthings-infrastructure.git]
/
BeaconSensor
/
BeaconSensor.groovy
diff --git
a/BeaconSensor/BeaconSensor.groovy
b/BeaconSensor/BeaconSensor.groovy
index 5f07e4cf75a66baf7af150e2e4aa7c15b5d497a7..1aafbb4a11731007655f1639f032cb06fcbc1778 100644
(file)
--- a/
BeaconSensor/BeaconSensor.groovy
+++ b/
BeaconSensor/BeaconSensor.groovy
@@
-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
}