Minor bug in events for button device
authoramiraj <amiraj.95@uci.edu>
Sat, 10 Aug 2019 22:46:36 +0000 (15:46 -0700)
committeramiraj <amiraj.95@uci.edu>
Sat, 10 Aug 2019 22:46:36 +0000 (15:46 -0700)
eventSimulator/buttonHeldEvent.groovy
eventSimulator/buttonPushedEvent.groovy

index 8a8f90d..4c51ef6 100644 (file)
@@ -1,11 +1,2 @@
                        buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
                                         displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
-
-                       buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
-                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 2}'])
-
-                       buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
-                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}'])                   
-
-                       buttonObject.setValue([name: "button", value: "held", deviceId: "switchID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}'])
index d6013e1..b14d8e7 100644 (file)
@@ -1,11 +1,2 @@
                         buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
                                         displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
-
-                        buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
-                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 2}'])
-
-                        buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
-                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}'])
-
-                       buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}'])