Timed Interrupt?

I tried to redo some code from a smart-app to use a class to simplify the duplications of data and functions and after I was done I got these errors:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$startTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘SoftTimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘TimedInterrupt$startTime’ is declared multiple times.
@ line -1, column -1.
script14935831277491326844615.groovy: -1: The field ‘SoftTimedInterrupt$expireTime’ is declared multiple times.
@ line -1, column -1.
6 errors

Any ideas?

It helps if you include a link to the full code, please…

(And “we” can’t create our own Classes inside a SmartApp or DTH… Only def methods).

No Classes, bummer link to code …Will do next time :slight_smile: Looks like passing maps back and forth might be the solution for something similar with functions.

1 Like