Change in the button controller events to support all the buttons' numbers.
authoramiraj <amiraj.95@uci.edu>
Wed, 6 Nov 2019 23:40:11 +0000 (15:40 -0800)
committeramiraj <amiraj.95@uci.edu>
Wed, 6 Nov 2019 23:40:11 +0000 (15:40 -0800)
eventSimulator/buttonHeldEvent.groovy
eventSimulator/buttonPushedEvent.groovy

index 4c51ef6..555ea4e 100644 (file)
@@ -1,2 +1,8 @@
                        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 b14d8e7..a7bbdea 100644 (file)
@@ -1,2 +1,8 @@
                         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}'])