Removing/commenting out evt variable that was causing a state explosion.
authorrtrimana <rtrimana@uci.edu>
Thu, 25 Jul 2019 22:27:35 +0000 (15:27 -0700)
committerrtrimana <rtrimana@uci.edu>
Thu, 25 Jul 2019 22:27:35 +0000 (15:27 -0700)
GlobalVariables/GlobalVariablesBothApps.groovy
Methods/eventHandler.groovy

index 6621df4..f3f944a 100644 (file)
@@ -7,7 +7,7 @@
 //Object for touch to call function
 @Field def appObject = new Touched(sendEvent, 0)
 //Create a global list for events
-@Field def evt = []
+//@Field def evt = []
 //Global Object for class Touch Sensor!
 @Field def touchSensorObject = new NfcTouch(sendEvent, 1)
 //Global Object for class switch!
index 4df7675..4475bc2 100644 (file)
@@ -13,7 +13,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
        for (int i = 0;i < app2.eventList.size();i++) {
                if (app2.eventList[i] == name) {
                        def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
-                       evt.add(event)
+                       //evt.add(event)
                        app2.functionList[i](event)
                }
        }
@@ -21,7 +21,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
        for (int i = 0;i < app1.eventList.size();i++) {
                if (app1.eventList[i] == name) {
                        def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
-                       evt.add(event)
+                       //evt.add(event)
                        app1.functionList[i](event)
                }
        }