Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Initial addition of ZigBeeNetworkManager #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cdjackson
Copy link
Collaborator

@cdjackson cdjackson commented Aug 30, 2016

This is an initial refactor to move some of the management that is currently in the dongle code, into the main API.

As discussed elsewhere, I think there's too much code still in the dongle interface. This initially moves the command listener handler from the dongle into the API. This changes the dongle interface slightly so that there's now just a sendCommand() method (same as before), but on the receive side there's a callback into the API. This means the dongle code now only needs to process packets. I've not optimised the code in the 2531 implementation - just moved the handler.

My thought is that the ZigBeeNetworkManager class handles 'all' of the network management, so I plan to move some of what is in the API class into here. The ZigBeeApi can then remain as a simple API, or more complex implementations can use the network manager directly.

This is in no way optimised and I'm providing this PR for visibility and any thoughts you might have :)

Signed-off-by: Chris Jackson [email protected]

Edit: Migrated to https://github.com/zsmartsystems/com.zsmartsystems.zigbee

@cdjackson
Copy link
Collaborator Author

This is now implemented in a separate fork. Feel free to close.

https://github.com/zsmartsystems/com.zsmartsystems.zigbee

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant