- threeAxis = new groovy.json.JsonSlurper().parseText(eventDataMap["value"])
- println("the three axis of cube is chagned to $threeAxis!")
+ def tmpID = id.toString()
+ currentThreeAxis = new groovy.json.JsonSlurper().parseText(eventDataMap["value"])
+ println("the three axis with id:$tmpID of cube is chagned to $currentThreeAxis!")
+ sendEvent(eventDataMap)
+ }
+
+ // Methods to return values
+ def getCurrentThreeAxis() {
+ return currentThreeAxis