tlaukkan / zigbee4java

Zigbee API for Java provides simple Java interface to ZigBee network.
Apache License 2.0
144 stars 68 forks source link

Reporter interface doesn't fully describe attribute #5

Closed cdjackson closed 9 years ago

cdjackson commented 9 years ago

The callback from the reporter interface only provides the attribute information - not the device or cluster. This means that it's difficult to set up a single reporter callback method to receive information from different clusters (or devices).

Have I missed something here? To me it seems preferable to have the additional information available in the reporter callback so the client doesn't have to (somehow) manage this itself (with multiple callbacks I guess).

tlaukkan commented 9 years ago

We add device and cluster identifiers to the callback method?

cdjackson commented 9 years ago

Yes - I think this would be a useful addition if you’re happy with that? Do you want to do that change, or shall I have a look?

tlaukkan commented 9 years ago

Who ever gets at it first :). Let me know if you start by commenting in this thread and I will do the same. I might have a time slot in couple of hours to do some work with this issue.

tlaukkan commented 9 years ago

Doing some work on it now.

cdjackson commented 9 years ago

Thanks :)