So I have an app where use 8 or so events from a device type (thermostat). In the past I just subscribed at all of the events individually.
Based on this documentation (see link - void subscribe(Object thing, handlerMethod)), though, I think I should be able to not specify an attribute in the subscribe and subscribe to ALL events on the device in one subscribe entry.
I tried it, though, and it does nothing. No error, but the app also does not show the subscriptions (and the corresponding handler method never fires either).
In my app this subscribes to apparently nothing:
This subscribes to the specified attributeName:
subscribe(tStat, "coolingSetpoint", tStatUpdate)