Last active
August 29, 2015 14:11
-
-
Save nodeit/643af0648a0cb057cb1f to your computer and use it in GitHub Desktop.
Smartthings parent method call error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In Device Type App | |
def poll() { | |
log.debug "Executing 'poll'" | |
results = parent.pollChildren() | |
log.debug results | |
} | |
// In Service Manager App | |
def pollChildren() { | |
log.debug "pollChildren" | |
return "This works!" | |
} | |
// Results | |
/* | |
"Executing 'poll'" is logged | |
and | |
error groovy.lang.MissingPropertyException: No such property: results for class: script14187380157011302195780 | |
/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment