question: design limitation precludes a common event handler? #226
Labels
needs triage
Needs investigation and prioritization
question
Further information is requested
reviewed
When defining device subscription handlers, you cannot name a common handler across subscriptions. The SDK design seems to impose a unique handler name for each subscription. If I want to support nearly all SmartThings capabilities, I would have a potentially LARGE number of subscriptions to handle, but the current design forces me to declare a unique handler for each, resulting in an unnecessary proliferation of code.
What I want to do is this:
However, I get a subscriptionName conflict error if I try to do that. What I seem to be forced to do is define unique handlers for each like this:
Is there a better way to accomplish this or perhaps this is a needed design change in the SDK?
The text was updated successfully, but these errors were encountered: