Hi Stefano, hi all

When subscribing for attribute reports ( Attribute.getSubscription() etc.), the actual reports/events which are sent to the listeners contain all reported attributes, not just the ones you subscribed to.

For example: you subscribe with listener 1 to get attribute 1 reports , and (unrelated) with listener 2 to get attribute 2 reports. Now if both attributes are part of the same cluster, any report will be calling both listeners.

If a report message from Att1 comes in, it gets reported to both listener 1 and 2. Listener 2 is not interested in reports from attribute 1 and must ignore this call, as it is not relevant for it.

I would have expected Listener 1 to get only reports from Att1 and the same for 2.

Why was it chosen to do it like this? Or is this unintended? (in which case I can file a bug)

NB: relevant code is in SubscriptionBase.ReportListenerNotifier.handleCluster(ZigBeeDevice, Cluster)

Regards Philipp



_______________________________________________
Dev mailing list
[email protected]
http://zb4osgi.aaloa.org/mailman/listinfo/dev

Reply via email to